代码实现安装APK方法

1944阅读 0评论2011-12-29 Leanx
分类:嵌入式

String filePath = Environment.getExternalStorageDirectory() + "/myApp.apk";
Intent intent
= new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(
"file://" + filePath),"application/vnd.android.package-archive"); startActivity(intent);
上一篇:android 界面五大布局
下一篇:没有了