从当前应用程序以编程方式调用另一个 .apk 文件? [英] Programmatically call another .apk file from current application?
本文介绍了从当前应用程序以编程方式调用另一个 .apk 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以从我当前的 Android 应用程序中以编程方式调用另一个 .apk 文件?
Is it possible to programmatically call another .apk file from my current Application in Android?
推荐答案
try as:
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屋!
查看全文