Thursday, April 28, 2011

I can install an application but I don't see its icon in the set of installed applications(on the emulator).

Hey, When I load an application(which I just compiled) in the emulator. I don't see its icon in the icons of the installed application(on the emulator). The command "adb install ..." tells me that the application is successfully installed(I can even uninstall it with "adb uninstall ..." command). The application is nothing more than a "Hello World" type of application, you get when you create a project with "android create project --target ...." command. I can compile and run other application perfectly with the same set of tools.

Give me some pointers, what am I missing? what have I overlooked? Please help me.

From stackoverflow
  • Did you set the <category android:name="android.intent.category.LAUNCHER" /> intent-filter in your manifest?

    Sohail : Hey, thanks for the reply. Here is a portion of the androidManifest.xml file...
    Falmarri : In your `` portion set to the correct image?
    Sohail : Hey, It was very late at night and I went to bed... I did not manually set the icon image("android create project..." command did it for me). Here is that application element line which you mentioned from the AndroidManifest.xml file... . As per my understanding the value of attribute android:icon="@drawable/icon will be resolved with the help of file R.java and here is the related portion of that file... public static final class drawable {public static final int icon=0x7f020000;}
    Sohail : For some odd reasons, the things are working now. I can see the skeleton application icon on the emulator and the application works. Falmarri, thankyou very much for your time. If I'm able to find out what I was doing wrong, I'll put it here. Thank you once again.

0 comments:

Post a Comment