Thiha Zaw
Thiha Zaw

Reputation: 826

Application icon does not appear after installing android app

I am developing an android app and when I install the app on android phone, the application icon does not appears in application section. But it appears in application manager and I can make uninstallation. After googling, some said I need to rebuild my project and to make sure the app icon in drawable resource. I already tried for this solution and the problem is still occurring. The manifest file I created is as follow:

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">
    <activity
        android:name=".MyActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.view" />
            <data android:scheme="geo" />
        </intent-filter>
    </activity>
</application>

Upvotes: 7

Views: 10054

Answers (5)

FractalBob
FractalBob

Reputation: 3534

In my case, my manifest included a label for the main activity. I deleted the label, restarted the app and the icon magically appeared in the applications list.enter image description here

Upvotes: 0

Saddan
Saddan

Reputation: 1655

I set action android:name="android.intent.action.MAIN and android:name="android.intent.category.LAUNCHER two of mine activity intent.For this I'm having two launcher icon.When I noticed that I remove one activity's intent filter,but My launcher icon disappear.I tried all the mentioned above solution but didn't work.As I noticed Darpan's comment about re-starting your phone will fix it I tried and It works for me

Upvotes: 0

Sinan Kozak
Sinan Kozak

Reputation: 3386

I believe geo scheme cannot be used with Launcher. I can't find any documentation but in this tutorial they suggest to use with default category.

Please try to move your location related code to another activity and move scheme=geo filter to that one.

Upvotes: 3

Akash
Akash

Reputation: 711

In your manifest in activity try using or add another intent filter

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

`

Upvotes: 1

Anik Islam Abhi
Anik Islam Abhi

Reputation: 25352

Change

android:icon="@drawable/ic_launcher"

With your icon

if you wanna to remove this icon you have to remove from all folder like

drawable
drawable-hdpi
drawable-mdpi
drawable-xhdpi

Upvotes: 0

Related Questions