Integrate a "Search Maps" function in an Android app -


the google maps application features search box (with autosuggestion) allows search address, resulting in marker being placed on map of google maps application.

is possible re-use functionality in custom android app, text box presented, resulting in geopoint being delivered custom app, app can place marker somewhere ? in other words, google maps application expose service or intent can used custom application ?

if so, how can integration done ?

if not, can provide pointer on how custom implementation can realized ?

to acquire location named address, need use statement geocoder.getlocationfromname("london",5). return set of matches (5 in example), can either use first one, or show set user select right one.

http://developer.android.com/reference/android/location/geocoder.html

once have location (latitude , longitude) can plot location on map using mapoverlay, , show marker using that.

http://developer.android.com/resources/tutorials/views/hello-mapview.html


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -