The role of Androidmanifest.xml in Android projects

Source: Internet
Author: User

The following is a androidmanifest.xml file in a project:

<?xml version= "1.0" encoding= "Utf-8"?>
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Tw.suggest"//package path for program files in the specified project
Android:versioncode= "1" The version number of this project
Android:versionname= "1.0" > The version name of this project


<uses-sdk
android:minsdkversion= "1"//Minimum API version for this project to run
Android:targetsdkversion= "/>//" The API version that this project expects to run
<application
Android:allowbackup= "true"//Allow Backup
android:icon= "@drawable/ic_launcher"//Small icon displayed during program execution
Android:label= "@string/app_name"//program name displayed in the information column above the phone screen when the program executes
Android:theme= "@style/apptheme"//Theme Style
>

<activity//activity is the basic execution unit for Android programs to run
Android:name= ". Mainactivity "//Run is to enter this specified program
Android:label= "@string/app_name" >
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>//decide which program the application executes first


<category android:name= "Android.intent.category.LAUNCHER"/>// determine if the application appears in the program list
</intent-filter>
</activity>
</application>


</manifest>

The role of Androidmanifest.xml in Android projects

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.