ArticleDirectory
I. Importance
Ii. Main Functions
Iii. Main structures and rules
Iv. Details
I. Importance
Androidmanifest. XML is an android application.ProgramOne of the most important files. It is a global configuration file of the android program and a required file in each android program. It is located in the root directory of the developed application and describes global data
AndroidManifest. xml configuration file is a very important basic knowledge for Android Application Development. This article aims to summarize the key usage in this configuration file for future reference. The following is a standard AndroidManifest. xml file sample.
Copy codeThe Code is as follows: From the above sam
I collected a bunch of Android code from the Internet, such as the login program of Android and the helloworld program of Android, but I still cannot run a correct program correctly. I 've been depressed for a long time, finally, after a test, the program of the self-built project was successfully run in the android simulator. The following is a summary of the procedure startup interface settings:
In the android project created by myeclipse, find the android
There are too few excellent Chinese books on Android game development, and there are indeed many English books.
There is no way to learn English. I don't know where to use translation tools!
In order to improve my English proficiency and memory intensity, I sent some useful pieces in the book to the top.
The following is a simple example:
The
Http://schemas.android.com/apk/res/android"Package = "com. helloworld"Android: versioncode = "1"Android: versionname = "1.0"Android:
specifies a complete path. permissions can only be granted to specific data subsets identified by this path. The pathprefix attribute specifies the initial part of the path, and the permission can be granted to share all data subsets of the initial path. The pathpattern attribute specifies a complete path, but this path contains wildcards:
1. asterisk (*) is a wildcard. * Asterisk in the path represents the character before any number of asterisks, such as a *, which can be a, AA, AAA, AAAA ,..
In AndroidMenifest. xml, the following statements are often used:
Copy codeThe Code is as follows: Android: targetSdkVersion = "10"
Android: maxSdkVersion = "10"/>
In default. properties, the following statement is displayed:Target = android-10If you are using Eclipse, you may also see the following warning:Attribute minSdkVersion (4) is lower than the project target API level (10)
So what are the differences between the minSdkVersion, targetSdkVersi
useless. It is compatible with old applications for Android, so it is not required.
How can I add androidpermissionCAMERA permission to AndroidManifestxml during Android development ?......
Permissions are generally written after the sdk version and before the application tag. For example: What is AndroidManifestxml?
The file name is an xml file. The file name is called AndroidManifest.
The android: versionCode and android: versionName fields represent the version code and version name respectively. VersionCode is an integer and versionName is a string. VersionName is shown to users, and it is not easy to compare the size. During the upgrade check, you can check versionCode to compare the size before and after the publication.
How can I read versionCode and versionName from AndroidManifest. xml
Turn: http://www.2cto.com/kf/201208/151123.html
In Android development, we often need to know the version information of the current application. You can perform automatic upgrade judgment. Extended Custom Data meta-data. How can we obtain this information in androidmanifest. xml?
The following example shows how to read the data.
1. version information and application name
2 appliction meta-data
3. Meta-dat
Androidmanifest. xml in Android Projects
The AndroidManifest. xml file in a project is as follows:
Package = "tw. suggest" // specify the package path of the program file in the project.
Android: versionCode = "1" // version number of this project
Android: versionName = "1.0"> // version name of the project
Each application must have an AndroidManifest. xml file in its root directory. This list submits the basic information of the application to the Android system. The information system must be established before the application code can run. The following are some things to do in the configuration file:
1. Name the application with a Java package. The package name is the unique identifier of the application;
Syntax (syntax ):
Android:Name="String"/>
Included in (contained in ):
Description ):
This attribute is used to grant the application Program the required permissions for the correct operation. These permissions are granted during application installation, rather than during runtime.
for more permission information, see androidmanifest. XML file description (3) describes "Permissions"
ProgramTo read security-sensitive items, you must declare related permission requests in androidmanifest. xml. The complete list is as follows:
Android. Permission. access_checkin_propertiesAllow read/write access to the "properties" table in the checkin database. You can modify the value of the table (allows read/write access to the "properties" table in the checkin database, to change values that get up
Each application must have an androidmanifest. xml file in its root directory. This list submits the basic information of the application to the Android system. The information system must be established before the application code can run. The following are some things to do in the configuration file:
1. Name the application with a Java package. The package name is the unique identifier of the application;
To read security-sensitive items, the program must declare related permission requests in androidmanifest. xml. The complete list is as follows:Android. Permission. access_checkin_propertiesAllow read/write access to the "properties" table in the checkin database. You can modify the value of the table (allows read/write access to the "properties" table in the checkin database, to change values that get uplo
Next part ~
Now we have an interesting call. Here is an example called mr. Nom:
Android: Label = "mr. Nom"Android: screenorientation = "portrait">Android: configchanges = "keyboard | keyboardhidden | orientation">
Let's take a look at the attributes of the
1. Name: it specifies the name of the activity class relative to the package attribute defined in the
2. Label: we have already specified the same attribute in
On application launcher (how to translate this ..). If this parameter is not sp
complete path. permissions can only be granted to specific data subsets identified by this path. The pathPrefix attribute specifies the initial part of the path, and the permission can be granted to share all data subsets of the initial path. The pathPattern attribute specifies a complete path, but this path contains wildcards:
1. asterisk (*) is a wildcard. * Asterisk in the path represents the character before any number of asterisks, such as a *, which can be a, aa, aaa, aaaa ,... string mat
in the path represents the character before any number of asterisks, such as a *, which can be a, aa, aaa, aaaa ,... string matching.
2. A combination of dots and asterisks (. *) wildcard, which can be matched with any string, such as. * HTML, which can be followed by abchhtml?chtml=html#dssf.html ,... .
Because the system uses the '\' symbol as a mandatory escape character when reading a string in XML, it needs to be escaped twice. For example, the
specifies a complete path to match the path in the intent object, but this path can contain the following wildcards:
1. asterisk (*) is a wildcard. * Asterisk in the path represents the character before any number of asterisks, such as a *, which can be a, AA, AAA, AAAA ,... string matching.
2.A wildcard character (. *) that can be used to match any string, such as. * html. It can be used to match with abchhtml?chtml=html=dssf.html ,... .
Because the system uses the '\' symbol as a mandatory es
asterisks, such as a *, which can be a, AA, AAA, AAAA ,... string matching.
2. A combination of dots and asterisks (. *) wildcard, which can be matched with any string, such as. * HTML, which can be followed by abchhtml?chtml=html#dssf.html ,... .
Because the system uses the '\' symbol as a mandatory escape character when reading a string in XML, it needs to be escaped twice. For example, the "*" symbol must be written as "\ *", and the '\' symbol mu
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.