Android app not showing up in app drawer

Hi, I have a little problem finding my application in App Drawer, it appears everywhere - Recent applications (by holding at home), and it is also in the settings in the Applications section.

The only place where not is the application, my first guess is the manifest?

The application works fine.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zaknorris.brainhacker.v1"
android:versionCode="1"
android:versionName="1.0" >

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

<application
    android:icon="@drawable/ic_launcher"
    android:label="Brain Hacker Pro"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="Brain Hacker Pro" >
        <intent-filter>
            <action android:name="com.zaknorris.brainhacker.v1.Menu" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".attentionbuilder"
        android:label="Attention Builder" >
        <intent-filter>
            <action android:name="com.zaknorris.brainhacker.v1.attentionbuilder" />

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

The icon is in drawable, that's all.

Not sure what is going on: \

New in Java

+5
source share
3 answers

you need to do this:

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

inside one of your activity items

+11
source

Change your AndroidManifest to this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zaknorris.brainhacker.v1"
android:versionCode="1"
android:versionName="1.0" >

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

<application
    android:icon="@drawable/ic_launcher"
    android:label="Brain Hacker Pro"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="Brain Hacker Pro" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".attentionbuilder"
        android:label="Attention Builder" >
        <intent-filter>
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
+2
source

MainLauncher=true IntentFilter , . Xmarin.android.

android Java:

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

All Articles