以编程方式调用从当前应用程序的另一个.apk文件? [英] Programmatically call another .apk file from current application?

查看:98
本文介绍了以编程方式调用从当前应用程序的另一个.apk文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能以编程方式从我目前在Android应用程序调用另外一个.apk文件?

Is it possible to programmatically call another .apk file from my current Application in Android?

推荐答案

尝试为:

        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setDataAndType(Uri.fromFile(new 
        File(Environment.getExternalStorageDirectory() + "/path/" 
        + "app_apk.apk")), "application/vnd.android.package-archive");
        CurrentActivity.this.startActivity(intent); 

这篇关于以编程方式调用从当前应用程序的另一个.apk文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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