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?