android 如何调用(打开)其他程序
2013-04-13 23:17
309 查看
Intent intent = new Intent();
intent.setComponent(new ComponentName("所要打开的程序包名", "所要打开的程序包名+主运行类名"));
intent.setAction(Intent.ACTION_VIEW);
startActivity(intent);
分类: android开发2012-04-10
14:24 539人阅读 评论(0) 收藏 举报
androidfile
[java] view
plaincopy
Intent intent = new Intent(Intent.ACTION_VIEW);
ddFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
[java] view
plaincopy
//filePath为文件路径
intent.setDataAndType(Uri.parse("file://"+filePath), "application/vnd.android.packagearchive");
startActivity(intent);
intent.setComponent(new ComponentName("所要打开的程序包名", "所要打开的程序包名+主运行类名"));
intent.setAction(Intent.ACTION_VIEW);
startActivity(intent);
android 如何调用系统自带的程序安装器安装程序
分类: android开发2012-04-1014:24 539人阅读 评论(0) 收藏 举报
androidfile
[java] view
plaincopy
Intent intent = new Intent(Intent.ACTION_VIEW);
ddFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
[java] view
plaincopy
//filePath为文件路径
intent.setDataAndType(Uri.parse("file://"+filePath), "application/vnd.android.packagearchive");
startActivity(intent);
相关文章推荐
- android 如何调用(打开)其他程序
- android 如何调用(打开)其他程序
- 之前账号的文章3:android私有存储目录下的文件如何让其他程序有权限打开
- android私有存储目录下的文件如何让其他程序有权限打开
- 如何在JAVA程序中调用windows其他程序
- 如何让自己的程序调用其他的Activity?
- iphone程序启动互相调用, 打开其他程序
- MFC 打开文件夹 调用其他程序 打开文件
- Android中如何通过程序打开或关闭GPS
- 如何在android应用程序中启动其他apk程序,被启动程序退出后返回之前的程序
- android开发(26) 和其他应用交换数据方式一,使用intent指定自定义action调用其他程序里的activity,并获得其返回的结果
- 程序调用ShellExecuteEx打开其他程序(兼容UAC获取管理员权限)
- android 如何调用系统自带的程序安装器安装程序
- android 如何通过包名打开其他应用
- Android如何调用拍照程序实现连拍
- iphone程序启动互相调用, 打开其他程序
- Android应用中如何调用其他应用的Activity
- 如何在自己的App中调用Android系统自带的安装/卸载程序
- Android:调用其他程序中的activity和Permission Denial: starting Intent 错误解决办法
- IOS 如何调用其他应用程序打开我下载好了的 EXCEL WORD PDF 等