in my application findlocation opptions is there.can u please help me how to find out the corresponding map by providing the country,city,street or pincode. please help me
+4
A:
From a Geocoder object, you can use the method getFromLocationName
that accepts an address and the number of result (if several locations are found)
It returns a list of Address objects that contain methods getLongitude()
and getLatitude()
Having the latitude and longitude, you can make a GeoPoint and use it for your mapController
ccheneson
2010-02-01 11:44:45
what u said it is right i am also did like what u said when i call getFromLocationName only first time it is throwing exception again if i call same method it is returning that lat and lon what is the problem for first time why it is throwing error
Aswan
2010-03-02 05:15:08
What error is it? Take a look at LogCat for useful information for debugging.
ccheneson
2010-03-02 09:09:18