Search code examples
androidapk

Android can't see application icon after installation


I developed an application with Android studio and there is a very strange behavior:
After the installation I cant see the application (not the icon nor the name) in all apps list, but I can see that in recent apps and in manage apps.
I sent the APK to myself in email and after the installation the open option was disabled. I checked the ic_launcher icons and they are fine.

What can cause that? Any ideas?

EDIT:

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

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

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".SplashActivity"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" android:host="my.package.name.host" />
            </intent-filter>
        </activity>
        <activity android:name=".MainActivity"
                  android:configChanges="orientation"/>

        <activity android:name=".LoginActivity"
                  android:windowSoftInputMode="adjustPan"
                  android:configChanges="orientation"/>
    </application>

</manifest>

Solution

  • For me having the following lines in the intent-filter were enough to make the ICON appear in the launcher with the other apps

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

    When you open the apk, that was sent by email or transfer to your phone you will see the INSTALL option and after succesfully installed the OPEN option is there.