Thursday, December 13, 2012

[android-developers] Find the list of all apps which can be moved to SD card out of all installed apps

 I have a requirement where I want to show the list of all apps which are installed on device. And corresponding to the list of all the applications i want to show an image sort of where the user can know that this application is movable to SD card.

Currently I am accessing these values from PackageInfo class(through java reflection )-
(refrence : http://stackoverflow.com/questions/6141592/how-can-i-check-the-app-is-movable-to-sd-or-not)
installLocation
INSTALL_LOCATION_AUTO
INSTALL_LOCATION_PREFER_EXTERNAL

I am assuming if
installLocation is  INSTALL_LOCATION_AUTO or  INSTALL_LOCATION_PREFER_EXTERNAL then the app is movable to SD card.

Please do suggest, am I missing anything?

Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment