如何在Android中使用意图打开特定的应用程序? [英] How to Open specific application using intent in android?
本文介绍了如何在Android中使用意图打开特定的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想开一个,.ics文件和放大器;我想确保特定的应用程序应该做的,使用意图
I want to open an .ics file & i want to make sure that particular app should do that using intent
推荐答案
有关打开另一个应用程序:
For opening another app:
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("package.name.of.destination.app");
startActivity(LaunchIntent);
表单有控制进入该应用程序,所以如果你想给一些效果,你必须这样做,在目标应用程序
Form there the control goes to that app, so if you wanna give some effects, you have to do it in the target app
这篇关于如何在Android中使用意图打开特定的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文