FORUMS

No Launcher activity found!

246 posts
Thanks Meter: 24
 
By MountainX, Senior Member on 17th January 2010, 04:48 PM
Post Reply Subscribe to Thread Email Thread
I'm not a developer but I want to debug an Android app on my Droid. I have Eclipse installed, etc.

I am stuck now because I don't know how to define a launcher activity. Here are the console messages:

Code:
[2010-01-17 11:33:36 - TestApp]Android Launch!
[2010-01-17 11:33:36 - TestApp]adb is running normally.
[2010-01-17 11:33:36 - TestApp]No Launcher activity found!
[2010-01-17 11:33:36 - TestApp]The launch will only sync the application package on the device!
[2010-01-17 11:33:36 - TestApp]Performing sync
[2010-01-17 11:33:36 - TestApp]Automatic Target Mode: using device '04036_my_droid_09834'
[2010-01-17 11:33:36 - TestApp]Application already deployed. No need to reinstall.
[2010-01-17 11:33:36 - TestApp]/TestApp/bin/TestApp.apk installed on device
[2010-01-17 11:33:36 - TestApp]Done!
Where can I find some help for this? Thanks.
 
 
8th October 2010, 12:39 AM |#2  
ExploreMN's Avatar
Senior Member
Thanks Meter: 467
 
More
The launcher activity is defined in the AndroidManifest.XML file.

It is defined as:

<activity android:name=".ActivityName">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Hope that helps! I had to dig around a while to find this information too...but my app now runs properly.
5th July 2014, 09:39 AM |#3  
Senior Member
Flag Johannesburg
Thanks Meter: 321
 
More
I'm having ENDLESS issues getting my app to run...

I'm following this tutorial but even adding your code, it still crashes when installing and opening the app on my device....

PLEASE HELP

Here is y AndroidManifest:

Code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myfirstapp"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="17"
        android:targetSdkVersion="21" android:maxSdkVersion="19"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity android:name=".MainActivity">
			<intent-filter>
				<action android:name="android.intent.action.MAIN" />
				<category android:name="android.intent.category.LAUNCHER" />
			</intent-filter>
		</activity>
    </application>

</manifest>
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes