7

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>
Pramod
  • 2,828
  • 6
  • 31
  • 40
Thiha Zaw
  • 806
  • 1
  • 9
  • 25
  • 1
    You know, it happened with me as well.. when I restarted my phone it worked. Strange. But yes, rebuilding should definitely work. That's the logical step. – Darpan Oct 29 '14 at 06:48
  • 1
    Thank you Pramod. Now, I have passed the problem by removing . But, I want to know when this data tag need and why it's still working even I removed it? Please let me know in detail about this data tag. Actually, I'm a beginner in android. – Thiha Zaw Oct 29 '14 at 11:55

5 Answers5

3

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.

Sinan Kozak
  • 3,236
  • 2
  • 26
  • 32
1

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" />

`

Akash
  • 681
  • 3
  • 17
0

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
Anik Islam Abhi
  • 25,137
  • 8
  • 58
  • 80
  • Thanks Anik Islam Abhi. I have solved the problem. I removed and it's working now. But, please let me know when this data tag need. – Thiha Zaw Oct 29 '14 at 11:59
0

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

Saddan
  • 1,546
  • 16
  • 19
0

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

FractalBob
  • 3,225
  • 4
  • 29
  • 40