Launching an intent to load Google Latitude from another application
-
12-11-2019 - |
문제
Can anyone provide me with how to launch Google Latutide (just to the main screen of it) via an intent from another application in android?
해결책 2
Thanks, I managed to do it like this...
Intent intent = new Intent();
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.LatitudeActivity");
startActivity(intent);
다른 팁
If you have an URI you can do this way:
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);
제휴하지 않습니다 StackOverflow