Does the first activity have to be mainactivity when the Android phone app starts?

Source: Internet
Author: User
Original: The first activity must be mainactivity when the Android phone app is launched

The first activity launched by the Android mobile app is self-setting, not a required mainactivity, and can be any activity.

The first activity to set up the Android phone app is to see the Mainfest.xml file in the Android project:

The Android.name property value is composed of the package name (Com.example.login) + Startup activity class name (login), and if you want to modify the first activity initiated by the app, You need to replace the activated activity class name (login) with the activity class name you want to start. However, the activity (Login) you replace needs to be declared in this document, otherwise it is useless and the project will be error-prone.

The replacement activity (Login) statement is as follows:

Does the first activity have to be mainactivity when the Android phone app starts?

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.