[Solved] How to Launch Google Map Intent with My Current Location


you have to try like this

String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude, longitude);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
context.startActivity(intent);

for more information visit here : https://developer.android.com/guide/components/intents-common.html#Maps

if you need with direction follow this

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
    Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(intent);

Hope it will help you 🙂

0

solved How to Launch Google Map Intent with My Current Location