Tuesday, 2 September 2014

Launching Google Maps Directions via an intent on Android



Intent intent = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://maps.google.com/maps?saddr=17.428323,78.412567&daddr=28.6454414,77.0907573"));
intent.setClassName("com.google.android.apps.maps","com.google.android.maps.MapsActivity");
startActivity(intent);




Get Location Using FusedLocationProviderClient Api

Step 1: Add play services location in build.gradle compile 'com.google.android.gms:play-services-location:11.4.2' Step 2:...