Reputation: 14565
I'm working on application and I'm curious about one thing : Is there any way I can detect all available storages in phone and let the user select where to install the application on first start. For example :
Internal Storage - 150MB free, SD Card - 2GB free
Thanks in advance!
Upvotes: 1
Views: 491
Reputation: 109237
Sound some strange, After starting application user make a choice where to install application?
You can't, because for starting application your application need to install on device and you can do only one thing is mentioned in manifest,
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
...
android:installLocation=["auto" | "internalOnly" | "preferExternal"] >
. . .
</manifest>
EDIT:
Prefer "auto" The application may be installed on the external storage, but the system will install the application on the internal storage by default. If the internal storage is full, then the system will install it on the external storage. Once installed, the user can move the application to either internal or external storage through the system settings.
Upvotes: 1