[android-developers] Re: How to search for a location on MapView?

2010-02-03 Thread gnugu
Ok, here is my solution: private void searchOnMap(String search) { // ** brings up Google Maps with results, but unable to pass data back to my app - no go // Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geo: 0,0?q= + search.replace( , +))); //

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
Or better yet, would it be possible to invoke Google Maps from my application, do the search there and have it return lat/lng back to me? When user clicks on a search result several options like Show on Map/ GetDirections etc a re presented. Could I insert my own option there? On Feb 2, 1:57 pm,

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
Ok, this will do the search: private void searchOnMap(String search) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geo:0,0? q= + search.replace( , +))); this.startActivity(intent); } No I need to get back long/lat of selected Costco. Any way? Anybody? On Feb

Re: [android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread Rogério de Souza Moraes
Hi, did you looked at the code MJAndroid? Download it at http://examples.oreilly.com/9780596521509/ It's a good example for you! Regards, Rogerio 2010/2/2 gnugu rho...@gmail.com Ok, this will do the search: private void searchOnMap(String search) { Intent intent = new

Re: [android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread Rastislav Hodul
Thanks. I'm looking at it, but can't see any example of search. Rastio Hodul rho...@gmail.com 2010/2/2 Rogério de Souza Moraes rogerio.so...@gmail.com: Hi, did you looked at the code MJAndroid? Download it at http://examples.oreilly.com/9780596521509/ It's a good example for you!

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
Got it! http://developer.android.com/reference/android/location/Geocoder.html#getFromLocationName%28java.lang.String,%20int,%20double,%20double,%20double,%20double%29 On Feb 2, 3:03 pm, Rastislav Hodul rho...@gmail.com wrote: Thanks. I'm looking at it, but can't see any example of search.