Search code examples
androidinstallationappearance

Application not appearing after being installed


I install an apk in my Android mobile but it doesn't appear in "Applications" section. I can see it through "Settings" -> "Applications Administrator" but I don't know how can I send it to "Applications" in order to be able to drag and drop the icon into my mobile desktop.

This is my AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="principe.android"
    android:versionCode="1"
    android:versionName="1.0">
    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="19">
    </uses-sdk>
    <application
        android:name="principe.android.ApplicationContext"
        android:icon="@drawable/application_image"
        android:label="@string/application_name"
        android:theme="@style/AppTheme"
        android:allowBackup="true">
        <activity
            android:name="principe.android.MainDialogActivity"
            android:label="@string/application_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN_DIALOG"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>
</manifest>

Solution

  • Add android:installLocation directive in your manifest.

    For example:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
       ...
       android:installLocation="internalOnly">
       ...
       <intent-filter>
          <action android:name="android.intent.action.MAIN"/>
          <category android:name="android.intent.category.LAUNCHER"/>
       </intent-filter> 
    </manifest>   
    

    See here for more info.