Thursday, 15 March 2012

java - No Launcher activity found -



java - No Launcher activity found -

i can't find problem maintain giving me error "no launcher activity found!" , "the launch sync application bundle on device!" can solve problem???

this maniest

<application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.example.saikoro.mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> <activity android:name="com.example.saikoro.startup" android:label="@string/app_name" > <intent-filter> <action android:name="com.example.saikoro.startup" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application>

the <activity> element of activity want launch through icon on app list must contain both of next parts of intent-filter:

<intent-filter> <category android:name="android.intent.category.launcher" /> <action android:name="android.intent.action.main" /> </intent-filter>

your current manifest has activity category launcher , action main, in different activities. 1 icon in app list must have them both.

java android android-manifest launcher

No comments:

Post a Comment