I have some basic issue in Google Maps(Android). From my app, I want to open Google maps homepage alone. I do not need to pass any address or lat/long via intent. Just open the Google maps.
Intent mapIntent = new Intent(Intent.ACTION_VIEW);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
This code helps but only problem is the previous search route(if we did on Google maps) still shows while opening the google maps. I want to clear any routes if exists and open the Google maps. The idea is user will search the address manually from the Google Maps. From my App I just need to open the Google maps.
Any help!