I want to know how to check whether the app is movable to sd or not through code. I know how to get the installed applications list and is it on sd card or not.
If ApplicationInfo flags contains ApplicationInfo.FLAG_EXTERNAL_STORAGE then it is on sd card but how can I check whether the app is movable to sd or not.
I want to know how to check whether the app is movable to sd
Share
My first guess is too look into Android Source code for
InstalledAppDetailsactivity. This is activity which shows “Move to phone” and “Move to SD card” buttons. It has interesting function calledinitMoveButton:Though not all classes used in this functions are available through public API. Specifically
PackageHelperis internal class.