try {Class clazz = this.getClass().getClassLoader().loadClass("android.widget.AppSecurityPermissions");Constructor constructor = clazz.getConstructor(new Class[] {Context.class, String.class });Object object = constructor.newInstance(new Object[] { this,"cn.itcast.mobilesafe" });Method method = clazz.getDeclaredMethod("getPermissionsView",new Class[] {});View view = (View) method.invoke(object, new Object[] {});setContentView(view);} catch (Exception e) {e.printStackTrace();}

参考

参考2

参考3

更多相关文章

  1. android surfaceView参考
  2. Android(安卓)WebView 图片自适应屏幕宽度
  3. Android(安卓)显示网页图片
  4. Android如何将第三方信息应用设置为默认信息应用?
  5. Android: 如何实现 in_app purchase
  6. PHP 即将来到 Google Android?
  7. 澄迈NIIT Android(安卓)实训 后5天学习android的基础
  8. android将后台应用置顶及moveTaskToFront的用法
  9. android 7.1.1 开始 Prevent apps to overlay other apps via to

随机推荐

  1. Android ViewPager与WP Pivot的视图对比
  2. Anatomy of an Android Application - 剖
  3. Android(安卓)Permission中英对照
  4. 手机和平板之外——带你理解跨设备的Andr
  5. 使用MediaRecorder录制音频
  6. Android实现游戏摇杆的源代码
  7. Android (SQLite 数据库与ContentProvide
  8. Android NDK相关的库方法
  9. Android shape使用和属性含义
  10. EditText的错误信息