i want to app to sd,i know in sdk2.2 ,we can install by using xml,but i want to install app to sd in sdk 2.1. at present i only know check version use the code:
public static int getSDKVersionNumber() {
int sdkVersion;
try {
sdkVersion = Integer.valueOf(android.os.Build.VERSION.SDK);
} catch (NumberFormatException e) {
sdkVersion = 0;
}
return sdkVersion;
}
my question:how to install app to sd ,at sdk2.1 and sdk 2.2.
thank you.
I believe this resource may help you the most. Install locations should be done through the AndroidManifest.xml file and I believe it was introduced with Android 2.2 (froyo) meaning older phone (2.1 and below) cannot install apps to the SD card.
Resource says:
Bitt Fault, with his app SDWatch is able to show the user the app setting page. I’m not sure if I’m reading it completely right, but you may able to do it with this code snippet from NotificationClicked.java
I’m having a little trouble figuring out what the
String pkgis exactly though.