I know move to sd card feature is available from android 2.2
I want to know is there way to detect in my program if device supports move to sd card feature, if its supported it can be moved else if not supported than nothing will happen(will be in phone memory)
My main issue is my app is supporting all devices from 1.6 to above, and i can’t use
android:installLocation=”auto”
because its not recognized for below version 2.2 . So do i have to do checking and enabling programmatically and if so how ? I hope you understand my problem.
Thanks.
To allow installation on external storage and remain compatible with versions lower than API Level 8:
Include the
android:installLocationattribute with a value of “auto” or “preferExternal” in the<manifest>element.Leave your
android:minSdkVersionattribute as is (something less than “8”) and be certain that your application code uses only APIs compatible with that level.In order to compile your application, change your build target to API Level 8. This is necessary because older Android libraries don’t understand the
android:installLocationattribute and will not compile your application when it’s present.When your application is installed on a device with an API Level lower than 8, the
android:installLocationattribute is ignored and the application is installed on the internal storage.This is what Android’s Backward Compatibility Says.
Also refer Applications That Should NOT Install on External Storage
and Applications That Should Install on External Storage