Now as I get the Address from my current Position and now I will get the latitude and longitude from the Address
Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());
List<Address> addresses;
try {
addresses = gcd.getFromLocation(location.getLatitude(),
location.getLongitude(), 1);
if (addresses.size() > 0)
java.lang.System.out.println(addresses.get(0).getLocality());
cityName = addresses.get(0).getAddressLine(0);
plz = addresses.get(0).getAddressLine(1);
Land = addresses.get(0).getAddressLine(2);
} catch (IOException e) {
e.printStackTrace();
}
String s = longitude + "\n" + latitude + "\n\n"
+ cityName+ "\n" + plz + "\n"+ Land;
// String l = "\n\nMy Current Land is: " + Land;
txt.setText(s);
I used this one to get the Address and I don't know how to get from an Address the latitude and the longitude?