In android, provision to set application install location.
you have to set only one property in manifest file "android:installLocation". This is recommended if application size is heavier then normal application.
There are there type in this property,
By default, the system will not allow your application to install on the external storage, so you don't need to worry about your existing applications.
- "android:installLocation="auto""
- If you declare "
auto", you indicate that your application may be installed on the external storage, but you don't have a preference of install location. - "android:installLocation="preferExternal""
- If you declare "
preferExternal", you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage. If the external storage is full, the system will install it on the internal storage. The user can also move your application between the two locations. - Some of the condition to applications that should not install on external Storage, for more information please click here.
- Some of the condition to applications that should install on external Storage, for more information please click here.
- android:installLocation="internalOnly"
- By default, the system will not allow your application to install on the external storage, so you don't need to worry about your existing applications. However, if you're certain that your application should never be installed on the external storage, then you should make this clear by declaring
android:installLocationwith a value of "internalOnly".
Example.
1 2 3 4 5 6 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.YOURPACKAGE NAME" android:versionCode="1" android:versionName="1.0" android:installLocation="internalOnly" > |
Further reference please click here.
Source developer.android.com
No comments:
Post a Comment