Android.intent.action.MAIN and Android.intent.category.LAUNCHER

Source: Internet
Author: User

Android.intent.action.MAIN
Determine the activity that the application starts first

Android.intent.category.LAUNCHER
Determine if the application appears in the program list

See articles on the Internet

Android.intent.action.MAIN and Android.intent.category.LAUNCHER

Always know that adding these 2 things means that the activity that started at the start of the program went online and looked up the following:

Android.intent.action.MAIN determines which application starts first

Activity Android.intent.category.LAUNCHER Determines whether the application appears in the program list

So there is no need to add launcher, try to get rid of launcher results OK ~ ~ ~ The program was installed successfully, but I can not find AH.

If an app doesn't have launcher, the APK can still be installed on the device, but it won't be visible on the desktop. If the activity is set to the launcher, and the main is set at the same time, the activity can appear in the program icon, if there is no main, you do not know which activity to start, so there will be no icon appears.

So, ~~main and launcher must appear together,

I tried to give 2 of the activity to the main and launcher.

Find out which of your activity in front of which first start, and in the program list there are 2 program icons run separately, the results can be imagined, respectively, the two activity.

(EXT) http://blog.csdn.net/qianquanyiyan/article/details/8551848

(turn) Android.intent.action.MAIN and Android.intent.category.LAUNCHER

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.