Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

No Launcher activity found!

OP MountainX

17th January 2010, 05:48 PM   |  #1  
MountainX's Avatar
OP Senior Member
Flag A place with no mountains
Thanks Meter: 22
 
246 posts
Join Date:Joined: Oct 2009
More
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, 01:39 AM   |  #2  
ExploreMN's Avatar
Senior Member
Thanks Meter: 465
 
1,573 posts
Join Date:Joined: Jun 2007
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, 10:39 AM   |  #3  
Senior Member
Flag Johannesburg
Thanks Meter: 296
 
2,550 posts
Join Date:Joined: Nov 2010
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