Geolocation - find the location of any place through text in android

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

i am new to android development .i want to develop an application in which location of my phone should displayed through text. (not via. latitude & longitude or via map view). i mean it should display location in words ...... like ...[your location: ring road,new Delhi,India]

is it possible in android.. when i tried for this i only can get the latitude & longitude or the view map but i am unable to get location in words if yes please tell me the code for that. it s argent friends. please tell me..

thanks

Answers

Your need to use the GeoCoder to retrive the address information.

 Geocoder gcd = new Geocoder(activity.getActivity().getBaseContext(),   Locale.getDefault());  
 List<Address> addresses;              
 addresses = gcd.getFromLocation(latitude,longitude, 1);  

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/17258899/find-the-location-of-any-place-through-text-in-android

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils