【发布时间】:2017-06-03 01:32:19
【问题描述】:
我正在开发一个应用程序,它可以通过意图打开其他应用程序并且它运行良好,但现在我需要打开一个特定的活动(或应用程序的一部分),我什至不知道它是否可能。
在这种情况下,我想从 Google Cardboard 应用程序打开街景。我无法弄清楚或找到这样做的方法。
这是我使用的意图(有效但不能完全完成任务):
public void actionOpenCardboard(View view) {
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.google.samples.apps.cardboarddemo");
if (launchIntent != null) {
startActivity(launchIntent);
}
}
【问题讨论】:
标签: android android-intent uri geo google-street-view