Im calling google maps app from my activity with these codes and every time location change, google maps updates.
public void onLocationChanged(Location location) {
longitude = location.getLongitude();
latitude = location.getLatitude();
konumum = Double.toString(latitude) + "," + Double.toString(longitude);
musteriKonumu = musteriKonumu.replace("|", ",");
String URL = "http://maps.google.com/maps?saddr="+ konumum + "&daddr=" + musteriKonumu;
Uri myGeo = Uri.parse(URL);
Intent intent = new Intent(Intent.ACTION_VIEW, myGeo);
startActivity(intent);
}
I want get a message or something when the user close the google map. How can i do that?
0 comments:
Post a Comment