packages/apps/Settings/src/com/android/settings/ApplicationSettings.java
private String getAppInstallLocation() {
int selectedLocation = Settings.System.getInt(getContentResolver(),
// Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO);
Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD);
if (selectedLocation == APP_INSTALL_DEVICE) {
return APP_INSTALL_DEVICE_ID;
} else if (selectedLocation == APP_INSTALL_SDCARD) {
return APP_INSTALL_SDCARD_ID;
} else if (selectedLocation == APP_INSTALL_AUTO) {
return APP_INSTALL_AUTO_ID;
} else {
// Default value, should not happen.
return APP_INSTALL_AUTO_ID;
}
}
阅读(4115) | 评论(0) | 转发(0) |