Precautions for package attributes and tags in the root tag in the android manifest. XML global configuration file

Source: Internet
Author: User

Manifest. xml
The package attribute in the <manifest> label is used to set the process name of the application, that is, the process name viewed by ddms during running.
The <original-package> label is used to set the application source package name, that is, the source code package level where the Java file is located, and the real source code level in the android project.
If the package attribute in <manifest> is the same as the Android: name value of <original-package>, the value of the Android: Name attribute can be in the ". classname" format during configuration setup.
After the <original-package> label is used, you must complete the registration for the Android: Name attribute in <activity> <service> <er ER> <provider>. The format of ". classname" is invalid.

Note: The package attribute in the <manifest> label only tells the system application process name. Therefore, the value of the process name (the value of the package attribute in manifest) and <original-package> can be different.

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.