开发者

How can I create directory path and put my files in it while installing apk?

开发者 https://www.devze.com 2023-04-06 16:31 出处:网络
How can I create a directory path and put my f开发者_JAVA技巧iles in it, while installing the APK? (While installing apk; not while running the program). Its not possible to make changes while you are

How can I create a directory path and put my f开发者_JAVA技巧iles in it, while installing the APK? (While installing apk; not while running the program).


Its not possible to make changes while you are installing application. its only thing happens is you do it when your application is running.

For install apk on External Storage,

<manifest xmlns:android="http://schemas.android.com/apk/res/android"    android:installLocation="preferExternal"    ... >

and remember these,

When your application is installed on the external storage:

1.There is no effect on the application performance so long as the external storage is
mounted on the device. 


2.The .apk file is saved on the external storage, but all private user data, databases,
optimized .dex files, and extracted native code are saved on the internal device
memory. 

3.The unique container in which your application is stored is encrypted with a randomly
generated key that can be decrypted only by the device that originally installed it.
Thus, an application installed on an SD card works for only one device. 


4.The user can move your application to the internal storage through the system
settings.

Warning: When the user enables USB mass storage to share files with a computer or
unmounts the SD card via the system settings, the external storage is unmounted from
the device and all applications running on the external storage are immediately killed.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号