private void GetAppDetailSettingIntent() {
Activity activity = mCurrActivity;
Intent localIntent = new Intent();
localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (Build.VERSION.SDK_INT >= 9) {
localIntent.setAction(“android.settings.APPLICATION_DETAILS_SETTINGS”);
localIntent.setData(Uri.fromParts(“package”, activity.getPackageName(), null));
} else if (Build.VERSION.SDK_INT <= 8) {
localIntent.setAction(Intent.ACTION_VIEW);
localIntent.setClassName(“com.android.settings”,”com.android.settings.InstalledAppDetails”);
localIntent.putExtra(“com.android.settings.ApplicationPkgName”, activity.getPackageName());
}
startActivity(localIntent);
}
android 打开应用设置
最新推荐文章于 2024-04-21 06:34:52 发布