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.

CEO & Co-Founder at SolGuruz® | Organiser @ GDG Ahmedabad | Top 0.1% over StackOverflow | 15+ years experienced Tech Consultant | Helping startups with Custom Software Development

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