Original address: http://trinea.iteye.com/blog/1463296
This article mainly describes several possible reasons why the icon does not appear after the Android app is installed.
The program you wrote suddenly disappeared after the installation, can be found in the application installation, but the desktop is no icon, start only from the most recent list of them. Typically this happens only in service class programs and test programs, because icons are not required.
Google has no fruit, its own two-point debugging solved, and test other users to provide other causes of error, roughly summarized as follows:
1. Application element property setting problem in Androidmanifest
Property Set Error
Icon is set, and the top icon resource file does not exist
Workaround: Add an icon resource file
2. No activity set Android.intent.category.LAUNCHER category or Android.intent.action.MAIN action in Androidmanifest
Androidmanifest doesn't have any activity settings.
And
At run time you will find the following message indicating asynchronous execution
[2012-03-25 ...] No Launcher Activity found!
[2012-03-25 ...] The launch would only sync the application package on the device!
The program is already installed in the list, but does not have an icon and does not display the activity execution of the Android.intent.action.MAIN property on the front of the screen.
Workaround: Add these two attributes to the main activity
For more information about the meanings of these two properties, please refer to:
3, main Intent-filter also configured a different kind of action and data, configured as follows:
XML code copy Code collection code
Some netizens say this way can not start, but after their own test can start just do not show the icon
Solution: Divided into two intent-filter, as follows
XML code copy Code collection code
Because intent-filter indicates what kind of intent the activity accepts, the conditions defined in one intent-filter must be met in order to start with that intent-filter, or else to start with the other intent-filter. And the above is obviously two kinds of starting mode, so must be separated. With this introduction you can know that other action, category, data conflicts can also cause this problem
My local is the last reason, debugging N long, because the first write when no data, this time the icon has been created, add data after the icon is still in, but the first to create a good, so has not found, added some new features the original apk deleted, suddenly found no icon, Always thought it was a new addition to the function caused by ...
The app icon does not display after the Android program installs the problem