安装apk程序的代码

    xiaoxiao2026-09-27  15

    Intent intent = new Intent(Intent.ACTION_VIEW); //指定apk文件的路径 String filePath = “/sdcard/FileExplorer.apk” //指定文件类型 intent.setDataAndType(Uri.parse("file://"+filePath),"application/vnd.android.package-archive") startActivity(intent);
    转载请注明原文地址: https://ju.6miu.com/read-1312372.html
    最新回复(0)