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

Source: Internet
Author: User
An application can have more than one activity, and each activity is at the same level, which activity is started first when the program is started?

Some programs may need to be displayed in the list of programs, some of which are not required. How do you define it?

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

As long as there is such a intent-filter in the XML configuration file, and there is this launcher in it, then this activity is the activity that first runs when the program is clicked.

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.