MAIN and LAUNCHER, have been not aware of these two differences, write the program when all put into a filter, two days before the interview asked, summed up:
Main Specifies the program entry address.
Launcher is the program's icon on the desktop of the phone.
If only main is set and no launcher is set, the program can be installed on the phone, but the app icon is not visible on the desktop, so the app cannot be launched.
If LAUNCHER is set only and no main is set, the program does not know which activity to boot from, so it does not display the icon on the desktop.
If you set main and launcher for more than one activity, multiple app icons are displayed on your desktop to enter the activity you set up separately.
<pre name= "code" class= "java" > <activity android:name= "Com.example ...." Android:label= " @ String/app_name "> <intent-filter> <action android:name=" Android.intent.action.MAIN "/> <category android:name= "Android.intent.category.LAUNCHER"/> </intent-filter> </ Activity>
[Android] The difference between main and launcher in the manifest file