Android-androidmanifest.xml related

Source: Internet
Author: User

  1. Package Name and Android:name

    Under the <mainifest> tab you can specify a package, which is a package under the Project/src, Android in the <activity> tab under <application>: Name= ". Xxxactivity ", the package name is omitted, the package is declared by default with <mainifest>;

    However, if the activity to be started or the service is not declared under <mainifest> the package will need to use the full android:name= "PackageName. Xxxservice, you may not be able to find the activity or service you want to start.

    PS: You can place all activity and service that need to be started under one package, and split other functions and classes into other package.

  2. <application>

    This element can also contain global and default attributes in application, such as tags, icons, themes, necessary permissions, and so on. A manifest can contain 0 or one of this element (no more than one is allowed).

  3. <activity> 

    activity is the primary tool for interacting with users. When a user opens an application's initial page, an activity, most of the other pages used is also implemented by different activity and declared in another activity tag.

  4. <service>

    A service is a component that can run at any time in the background. Use activity tags to selectively include one or more of the < intent-filter> elements supported by receiver

  5. Android properties in the Androidmainfest.xml file

This article is from "Whispering Autumn Wind" blog, please be sure to keep this source http://xjhznick.blog.51cto.com/3608584/1561763

Android-androidmanifest.xml related

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.