Google Map Android Search Location
I'm Trying to make Google Map search by address here is my code for cari.java import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Locale
Solution 1:
Check whether<uses-library android:name="com.google.android.maps" />
is given in manifest..
Solution 2:
You could use Android's Geocoder for this purpose. It can return a list of Known address' from a given location name. You can then use the getLatitude()
and getLongitude()
on each of these address' to get one that's suitable for you.
The getFromLocationName()
is useful in this regard. Check here for details.
Once you have the lat-long, you can use this tutorial to add an overlay item at that location on a map.
Solution 3:
Look at this post: Consultation about show location on map by street name
About EditText
and Button
you can read here: developer.android.com
Post a Comment for "Google Map Android Search Location"