Skip to content

Instantly share code, notes, and snippets.

@emedinaa
Created June 26, 2015 16:51
Show Gist options
  • Save emedinaa/c0ef0e967fc7d8d0f890 to your computer and use it in GitHub Desktop.
Save emedinaa/c0ef0e967fc7d8d0f890 to your computer and use it in GitHub Desktop.
Cuando quieren lanzar al mapa ,agregar un marcador con un Intent y te devuelve un error.
public static void launchGoogleMaps(Context context, double latitude, double longitude) {
String coordinates = "http://maps.google.com/maps?daddr=" + latitude + "," + longitude;
Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse(coordinates) );
context.startActivity(intent );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment