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.
Did you set the <category android:name="android.intent.category.LAUNCHER" />
intent-filter in your manifest?
From my testing of creating new projects, when you specify that you want the Android Project creation wizard to create an activity for you, the intent information will be in the manifest file and you shouldn't have this problem.
If you do not choose to create a project with an activity then you will have to remember to add in this intent information to your manifest manually. The intent info should look something along the lines of:
<activity android:name=".MyAppName"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
精彩评论