Manifest errors in Android programming

Source: Internet
Author: User

I recently imported the source code project on the Internet and found some errors on manifest. I would like to share with you here:

I. android: installLocation, which we generally cannot use. Here we will explain that it was introduced by android2.2. Note that your android: targetSdkVersion, this value must be greater than or equal to 8. The function of this parameter is as follows:
<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 the current application is only installed in the memory and cannot be installed on the SD card. If the memory is full, it cannot be properly installed. And it is the default value. Auto: The device can be installed on the SD card, which is installed in the memory of the mobile phone by default. If the memory is full, it will be installed on SD. PreferExternal: indicates that the program will be installed on the SD card. If the SD card is unavailable or full, it may also be installed in the memory. In addition, you can freely switch the installation location. Simply put, the program will be installed in the memory by default, unless you only remember to define it. In addition, even if you install the program on the SD card, the data stored by the application will still be stored in the mobile phone memory. For an apk program, there is a random key, which ensures that the program can only be operated by the program that installs it. If the SD card is uninstalled, no application is available. We will find that when we remove the SD card, there are a lot fewer programs on the phone, which is the cause. 2. android: xlargeScreens is simple. This is introduced by android2.3. Note that your android: targetSdkVersion must be greater than or equal to 10.

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.