tags:

views:

59

answers:

1

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
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
What error is it? Take a look at LogCat for useful information for debugging.
ccheneson