Android: the installed application icon does not appear in the emulator

When I run my application code, I could see the following entry in the console:

[2011-03-01 10:29:26 - mireader] Uploading mireader.apk onto device 'emulator-5554' [2011-03-01 10:29:26 - mireader] Installing mireader.apk... [2011-03-01 10:29:40 - mireader] Success! [2011-03-01 10:29:41 - mireader] Starting activity com.mireader.reader on device emulator-5554 [2011-03-01 10:29:44 - mireader] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mireader/.reader } 

The main GUI of the application starts automatically. There are no problems so far. When I return to the application list, my application icon is not displayed there. I checked in the settings-> application-> application management, there I could see my application, and it also shows the uninstall option.

What is the problem?

+7
source share
3 answers

possibly absent

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

in your main <activity> in the manifest

+16
source

I had the same issue in Android Studio, with API 19 and with the gradle build system. We spent a couple of hours to figure this out, and we realized that if you have more libraries (for example, you have more test applications in one project) and you have more launch icons in a separate library than gradle cannot solve this problem, You will not receive an error message, you just do not see the icon.

  • So use different names for the launcher icon or just delete what you don't need.

(I just thought maybe someone would have the same problem ...)

  • There was another scenario when the icon disappears. When you use <data android:scheme="your-own-uri">

The solution is to split the intent filter.

  <activity android:name=".MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="your-own-uri" /> </intent-filter> </activity> 
+7
source

Just for Android noobs like me, putting this:

 <data android:scheme="file" /> <data android:host="*" /> <data android:pathPattern=".*\\.pdf" /> 

between intent filter tags, the main action also disappears. The above code should open the file based on its extension. Remove it and the icon will reappear.

0
source

All Articles