【发布时间】:2012-03-14 23:39:02
【问题描述】:
谁能告诉我如何通过 android 中另一个应用程序的 Intent 启动 Google Latutide(只是到它的主屏幕)?
【问题讨论】:
标签: android google-maps google-latitude
谁能告诉我如何通过 android 中另一个应用程序的 Intent 启动 Google Latutide(只是到它的主屏幕)?
【问题讨论】:
标签: android google-maps google-latitude
如果你有一个 URI,你可以这样做:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
startActivity(intent);
【讨论】:
谢谢,我设法做到了……
Intent intent = new Intent();
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.LatitudeActivity");
startActivity(intent);
【讨论】: