- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 通过packgername 启动browser
Android 5.1源码中使用 try { Intent intent1 = new Intent(); intent1.setAction("android.intent.action.VIEW"); Uri content_uri = Uri.parse("http://www.emindso
2016-04-28 10:49:53 612
原创 通过packgername 启动activity
try { PackageManager manager=mContext.getPackageManager(); Intent lanuch = new Intent(); lanuch = manager.getLaunchIntentForPackage("com.cyanogenmod.filemanager"
2016-04-28 10:44:01 645
原创 Andorid 源码5.1 调用系统文件管理页面
在点击时间里面添加: Note: 调用系统的这些方法必须在源码中调用有效 自己写的demo无效。 for (int i = 0; i AppInfo appInfo = mlistAppInfo.get(i); PackageManager manager = this.getPackageManager(); String packString = appInfo.g
2016-04-15 17:11:01 416
原创 Android 源码5.1调用系统设置页面
在点击事件里面添加: if(android.os.build.VERSION.SDK.INT>13){ startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAT_TASK
2016-04-15 16:58:04 699
原创 Android 源码5.1调用系统关机
在点击事件的方法里面添加: Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN); intent.putExtra(Intent.EXTRA_KEY_CONFIRM,true); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);
2016-04-15 16:44:54 746
Android体系结构
2014-09-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人