For the Geocoder, here's a bunch of code you can use..

LocationManager locMgr = 
> (LocationManager)getSystemService(Context.LOCATION_SERVICE); 

Location lastLoc = locMgr
> .getLastKnownLocation(LocationManager.GPS_PROVIDER);
>
> List<Address> addressList;
> Geocoder geo = new Geocoder(getApplicationContext(), Locale.getDefault());
>  try {
>      addressList= geo.getFromLocation(lastLoc.getLatitude(), 
> lastLoc.getLongitude(), 
> 1/*only one answer*/);
>      if (null!=addressList) {
>        Address MyAddress = addressList.get(0);
>           // do something with MyAddress
>      }
>  } 

 catch (IOException e) {  
>
 }
>

 
 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to