首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

起动安装的apk

2012-08-22 
启动安装的apkFile apkFile new File(Environment.getExternalStorageDirectory().getAbsolutePath() +

启动安装的apk

File apkFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/packageName.apk");?
Intent intent = new Intent(Intent.ACTION_VIEW);?
intent.setDataAndType(Uri.fromFile(apkFile), "application/vnd.android.package-archive");?
startActivity(intent);?

热点排行