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 2, 2:09 pm, gnugu <[email protected]> wrote:
> 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, gnugu <[email protected]> wrote:
>
> > Hi,
> > I'm adding MapView to my app and I would like the user to be able to
> > search for location just like in Google Maps app.
>
> > Is there any way to do it?
>
> > Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to