Android – Enable the "Move to SD card" Feature

By -

Problem: How do I enable the “Move to SD card” feature?

Solution:
To solve the above problem, we have to set the android:installLocation attribute inside the AndroidManifest.xml file.

android:installLocation => It defines the location where the application will install.

To allow the system to install your application on the external storage, modify your manifest file to include the android:installLocation attribute in the element, with a value of either “preferExternal” or “auto”. For example:


So if we set android:installLocation=”auto” value then it will allows the user to have choice to move app to SD card whenever they want. We should give this kind facility to the user as most of mobile are having low internal memory as compared to external memory.

Note: android:installLocation is available from API Level 8.

For more information and reference, i would suggest you to go through this link:http://developer.android.com/guide/appendix/install-location.html

Please feel free to share your review.

Paresh Mayani

Lazy android developer, exploring the horizon of android development since 7 years. He is Technical Lead - Android at Lets Nurture, India. He is also Application Architect at KarConnect. He is the Head/Organizer of Google Developers Group (GDG), Ahmedabad

Loading Facebook Comments ...
Loading Disqus Comments ...