Android Manifest XML: Declaration of components

Source: Internet
Author: User
First, Introduction

Android needs an XML file saved in the project root directory androidmanifest.xml,android will use this file to launch your application.

II. structure of the Androidmanifest.xml file

The,<manifest> tag in the Manifest XML file has 4 standard properties:

  • <APPLICATION>: The Android:icon attribute of this tag points to the Icon.png file we put in the res/drawable directory. The Android:label property points to the name of the application stored in the String.xml file.
  • <activity>: Declares an application's activity class by specifying a name in the Android:name property.
  • <intnet-filter>: This tag specifies the action and type of the intent object that launches the application. The other action is Android.intent.category.MAIN, which means to start the Main.xml file. The species is Android.intent.category.LAUNCHER.
  • <uses-sdk>: This tag specifies the minimum SDK version supported by the application through the Android:minsdkversion property.

Of course, there are some other tags:

  • <service>: This tag declares the application's service class by android:name the specified name.
  • <receiver>: This tag declares the application's broadcast sink class by android:name the specified name.
  • <provider>: This tag declares the application's content provider by android:name the specified name. What content providers you need to access when your app starts.

Android Manifest XML: Declaration of components

Related Article

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.