简体   繁体   中英

WRITE_EXTERNAL_STORAGE in Manifest

I know that WRITE_EXTERNAL_STORAGE in the Manifest file allows my android application to write to external storage. Does WRITE_EXTERNAL_STORAGE mean also that my application will be installed automatically into the external storage of the devices from google play?

Thanks.

WRITE_EXTERNAL_STORAGE

Means Your application will use external storage for reading writting purpose. It doesnt mean that your application will get installed on SD Card.

Does WRITE_EXTERNAL_STORAGE mean also that my application will be installed automatically into the external storage of the devices from google play?

No, however you may specify in the <manifest> tag the preferred install location:

<manifest 
          .....
          android:installLocation="preferExternal" >

No, this will only mean your app will ask for permission to write to external storage.

If you want your app to be installed on external storage your going to have to add the following to your apps manifest.

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

See also: http://developer.android.com/guide/topics/data/install-location.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM