android 跳转到当前应用的详情页面
16lz
2021-12-04
转载注明出处:http://blog.csdn.net/longfei123abc
或我的短域名:http://www.xuetenglong.xyz
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", 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", getPackageName()); } startActivity(localIntent);
更多相关文章
- NotificationCompat.Builder deprecated in Android(安卓)O
- [转载]android Instrumentation
- android studio AndroidManifest.xml命名空间报错问题
- Android(安卓)Eclipse插件TabHost问题(转载)
- Android(安卓)5.0(L) 的MediaSession架构分析(转载)
- android sqlite 实例
- Android: Actions for BroadcastReceiver
- Android(安卓)ImageView 总结【转载】
- Android(安卓)系统framework 概述【转载】