Android 以编程方式安装 apk [英] Android install apk programmatically

查看:38
本文介绍了Android 以编程方式安装 apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Is it possible to install an apk programmatically in the background or does the user have to accept the installation.

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

My scenario is that I want my employees to all have the same set of applications installed.

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

Of course they can install applications by them self, but I want them all to have at least some applications installed.

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

推荐答案

本解决方案链接

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);

这篇关于Android 以编程方式安装 apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆