Created
June 26, 2015 16:51
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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