1

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?

Eurig Jones
  • 8,226
  • 7
  • 52
  • 74

2 Answers2

0

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

viplezer
  • 5,519
  • 1
  • 18
  • 25
0

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);
Eurig Jones
  • 8,226
  • 7
  • 52
  • 74