I’m trying to write an Android 2.2 app that will find installed apps that can be moved to the SD card. The permission to do this is encoded in the AndroidManifest.xml file as the root-level attribute “android:installLocation“. PackageInfo seems to have an interface to everything but this attribute. I can open the installed apk and extract the AndroidManifest.xml file, but it seems to be in some binary encoding format, which some random internet people have written a decoder for, but that seems like an awful lot of work.
Is there an interface that I’m missing?
As it turns out, while there’s no direct API call to get
installLocation, neither do I have to parse the binary XML manually, as the providedXmlResourceParserworks on it.Uh, I guess there’s a
switchin there with onecasethat should probably just be anif. Oh well. You get the point.