Errors encountered on the manifest of Android programming

Source: Internet
Author: User

Recently introduced the online source project, found that there are some errors in the manifest, here also by the way and everyone to share under:

One, android:installlocation This parameter, in fact, we generally do not use, here explained: It is android2.2 introduced, pay attention to your version of Android: Targetsdkversion, this should be greater than or equal to 8. On the role of this parameter: from the Android Development documentation:
<span style= "FONT-SIZE:12PX;" ><manifest xmlns:android= "http://schemas.android.com/apk/res/android"
          package= "string"
          Android: Shareduserid= "string"
          android:shareduserlabel= "string resource" 
          android:versioncode= "integer"
          Android:versionname= "string"
          android:installlocation=["Auto" | "Internalonly" | "Preferexternal"] > ...
</manifest></span>
Internalonly: Indicates that only the current application is installed in memory and cannot be installed on the SD card. If the memory is full, it will not install properly. And it's the default value. Auto: Indicates that it can be installed in the SD card, the default will be installed in the phone memory. If the memory is full, it will choose to install on SD. Preferexternal: Indicates that the program will be installed on the SD card, if the SD card is not available, or full, it may also be installed in memory. In addition, users can also freely switch the installation location. This is simply, by default, the program will be installed in memory unless you only remember the definition. Also, even if you install the program on the SD card, but the application of the saved data will still be stored on the phone memory. For APK programs, there is a random key that ensures that the program can only be manipulated by the program that installed it. If the SD card is uninstalled, then the application is gone. We will find that when the SD card is taken away, the phone program is a lot less, this is the cause. Second, Android:xlargescreens this is simple, this is android2.3 introduced, pay attention to your version android:targetsdkversion, this should be greater than or equal to 10.

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.