2013年8月17日星期六

[Android] Android apk default installation location setting

 

in the Android project, set the default installation location of apk

 

 

Manifest file in Android Manifest.xml add tags android: installLocation Properties

 

android: installLocation

 

setting this property is the default installation location, a total of three rms, < span> auto, internalOnly, preferExternal

 

correspondence table

 

auto indicates auto, determined by the system installation location

 

internalOnly installed in the phone memory

 

preferExternal installed in the external storage

                                                                                                     
Constant Value Description
auto 0 Let the system decide install location
internalOnly 1 Explicitly request to be installed on internal phone storage only
preferExternal 2 Perfer to be installed on SD card, There is no guarantee that the system will honor this request. The application might end up being installed on internal storage if external media is unavailable or too full
 

 
  
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package
="com.ray"
android:installLocation
="auto"
android:versionCode
="1"
android:versionName
="1.0">
 
 

problems that need attention (If you encounter other problems, post-supplement)

 

need to open the program to start, must be installed to the phone memory, where it relates to the broadcast message in the order

 

boot broadcast messages BOOT_COMPLETE start earlier than SD, if installed to the SD card, you can not receive broadcast boot.

 

 

 

article comes from Ray-Ray's blog

 

article addresses http://www.cnblogs.com/rayray/p/3185811.html

 Thank you for your recommendations and

Collection

 

your support! our motivation!

没有评论:

发表评论