Androidmanifest. XML isProgramThe required files are located in the root directory of the entire project, describing components in the package, such as activities, services, content providers, intent receivers, and their respective implementation classes, various data and startup locations that can be processed.
The source code is as follows:
Androidmanifest. xml source code
1 <Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" 2 Package = "Com. example. androidlifedemo" 3 Android: versioncode = "1" 4 Android: versionname = "1.0" type = "codeph" text = "/codeph"> 5 6 <Uses- SDK 7 Android: minsdkversion = "8" 8 Android: targetsdkversion = "15"/> 9 10 < Application 11 Android: icon = "@ drawable/ic_launcher" 12 Android: Label = "@ string/app_name" 13 Android: theme = "@ style/apptheme"> 14 <Activity 15 Android: Name = ". mainactivity" 16 Android: Label = "@ string/title_activity_main"> 17 <Intent-filter> 18 <Action Android: Name = "android. Intent. Action. Main"/> 19 20 <Category Android: Name = "android. Intent. Category. launcher"/> 21 </Intent-filter> 22 </Activity> 23 </Application> 24 25 </Manifest>
Package = "com. example. androidlifedemo" in line 1 indicates the main package name of the entire Java application. androidlifedemo indicates the name of the project I created.
The Android: versioncode in line 2 indicates the APK version generated by the project.
Android: versionname in line 1 indicates the name of the APK version generated by the project.
Lines 6th to 8th indicate the SDK version used by the project.
Android: icon = "@ drawable/ic_launcher on Line 1 represents the logo image of the application.
The Android: Label = "@ string/app_name" in line 12th indicates the name of the application.
The Android: Name = ". mainactivity" in line 15th indicates the name of the main program of the entire application.
The <intent-filter> of the 17th rows is an intent filter used to filter out users' actions and operations.
<Action Android: Name = "android. Intent. Action. Main"/> In line 3 specifies the project's portal program.
<Category Android: Name = "android. Intent. Category. launcher"/> In line 3 determines whether an application is displayed in the program list.