Solve the problem of installing no icon on Android program

Source: Internet
Author: User

Picture / text listen to ghost Brother tell a story

Sometimes encountered the game, do not know is the game company problem, or distribution channel after the problem, the game installed unexpectedly will not show the icon. Of course, this is very important for viruses and Trojans, but also a good means of hiding, but for normal applications and games need to deal with this problem.

There are several possibilities to encounter this problem:


1. The game does not set icon

2. The game does not set the main class

3. The main class has other data or filter effects

Here's the test:

A normal androidmanifest.xml file is like this, such as:





First Clock way:

We removed the icon in the program development , the program will run normally, and the icon becomes the small robot of the system. as follows:

    <application        android:allowbackup= "true"        android:icon= "@drawable/ggg"        android:label= "@string/app _name "        android:theme=" @style/apptheme ">


Then, export the apk from the bin directory in the Eclipse project , decompile it, and in the XML file will The name of the icon setting changes, the back to the compiler will error as follows :




It is not possible to show that this is the way we encounter a game or app without an icon, which cannot be restored in this way.

The second way:

Let's remove this field from the main class first.

< category android:name="android.intent.category.LAUNCHER" />

Here's another scenario:

<category android:name= "Android.intent.category.LEANBACK_LAUNCHER"/>

Make some changes to the launcher, as shown above.


At the time of installation, you will be prompted at the console :





Then the program does not start, no icon.

Next, we restore the field and then delete the Main field:

The effect is the same as above, with no icon.

This situation is usually met, especially if you encounter a sub-channel game or application, use their own packaging tools, you may encounter, here need attention.

The Third Way:

We add the following code to the main class


        <activity            android:name= "com.example.testicon.MainActivity"            android:label= "@string/app_name" >            <intent-filter>                <action android:name= "Android.intent.action.MAIN"/>                <category Android:name= "Android.intent.category.LAUNCHER"/>                                <data android:scheme= "Aone" android:host= " Accountmanageactivity "/>              </intent-filter>        </activity>

Eclipse runs the program, the Discovery program starts, and the phone interface does not have an icon.

In the development of their own programs, or anti-compiler program, the appearance of this situation is more, is more common, and this clock situation, unfamiliar with the development of knowledge of new students may not understand this, and the problem is attributed to other situations, this must be noted.


Solve the problem of installing no icon on Android program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.