Difference between auto and preferExternal Android installation location manifest

What is the difference between installation settings autoand preferExternalandroid manifest? Both options can install the application on external memory. Is this something important and important? Which is better to install?

+4
source share
2 answers

As stated in the Android Api manual,

Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device SD card). This is an optional feature you can declare for your application with the android:installLocation manifest attribute. If you do not declare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage.

I think it's better to declare android:installLocationbecause

  • Internal storage is limited on some devices.
  • The user has the ability to move the application between internal and external storage.

An attribute android:installLocationcan have the following possible values.

"internalOnly": . , . , . , android:installLocation.

"": , . , . .

"preferExternal": (SD-). , . , , ( ). .

+14
0

Source: https://habr.com/ru/post/1537668/


All Articles