Android 程序中安装APK文件

来源:互联网 发布:c语言标准库pdf 编辑:程序博客网 时间:2024/05/22 01:42
ntent intent = new Intent(Intent.ACTION_VIEW);
            intent.setDataAndType(Uri.fromFile(new File
            (Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
            startActivity(intent);