1

谁能向我提供如何通过 android 中另一个应用程序的意图启动 Google Latutide(仅到它的主屏幕)?

4

2 回答 2

0

如果你有一个 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);

于 2012-02-24T14:32:09.223 回答
0

谢谢,我设法做到了这样......

Intent intent = new Intent();
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.LatitudeActivity");
startActivity(intent);
于 2012-02-27T10:25:32.270 回答