With the help of following code i am trying to open Google map application but its getting crash after 2 min of loading.
Code snippet :
String url = "http://maps.google.com/maps?saddr="
+ GPS_Data.getLatitude() + "," + GPS_Data.getLongitude()
+ "&daddr=" + mCompanyDetail.getLatitude() + ","
+ mCompanyDetail.getLongitude() + "&mode=driving";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
Note : input from my side is fine and i am not getting any logs regarding this.