Android以编程方式安装apk

Fel*_*lix 7 android install apk android-install-apk

是否可以在后台以编程方式安装apk,或者用户是否必须接受安装.

我的方案是我希望我的员工都安装了相同的应用程序集.

当然,他们可以自己安装应用程序,但我希望他们至少安装一些应用程序.

我不是在谈论从市场上安装应用程序.

小智 11

此链接中的解决方案

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)