转载注明出处: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);

更多相关文章

  1. NotificationCompat.Builder deprecated in Android(安卓)O
  2. [转载]android Instrumentation
  3. android studio AndroidManifest.xml命名空间报错问题
  4. Android(安卓)Eclipse插件TabHost问题(转载)
  5. Android(安卓)5.0(L) 的MediaSession架构分析(转载)
  6. android sqlite 实例
  7. Android: Actions for BroadcastReceiver
  8. Android(安卓)ImageView 总结【转载】
  9. Android(安卓)系统framework 概述【转载】

随机推荐

  1. 【摘录】How do you change the drawing
  2. Android开发便签9:在android资源文件中定
  3. 记录Android(安卓)迁移到AndroidX时的步
  4. android 4.4 设置默认日期格式
  5. Android 自动化测试—robotium(六)只有APK
  6. Android JsBridge 源码解析
  7. MS目录
  8. Android获取未安装或已安装apk的版本、图
  9. Android(安卓)布局文件的性能--使用inclu
  10. 安卓动画