Question

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?

Was it helpful?

Solution 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);

OTHER TIPS

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);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top