user2979610
user2979610

Reputation: 1

No Launcher Activity Found. The launch will only sync the application package on the device

I'm having an error in launching my test application, I'm a newbie on android development I hope you guys can help me.

Herewith is my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jhaydev.weirdgeeks"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="18" />

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

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

    <activity
        android:name="com.jhaydev.weirdgeeks.Menu"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="com.jhaydev.weirdgeeks.MENUA" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>
</manifest>

I am getting following error:

[2013-11-11 22:59:16 - WeirdGeeks] Android Launch! [2013-11-11 22:59:16 - WeirdGeeks] adb is running normally. [2013-11-11 22:59:16 - WeirdGeeks] No Launcher activity found! [2013-11-11 22:59:16 - WeirdGeeks] The launch will only sync the application package on the device!

Thanks.

Upvotes: 0

Views: 2766

Answers (1)

Subramanian Ramsundaram
Subramanian Ramsundaram

Reputation: 1347

Just Replace This line in your code:

 <intent-filter>
          <action android:name="android.intent.action.MAIN" />

         <category android:name="android.intent.category.LAUNCHER" />
 </intent-filter>

Upvotes: 1

Related Questions