Hello,
I have a list of address e.g
23 ABC road, city, post code, UK
When the user selects one of these address I want to go to google maps to that location.
Can someone please provide a code example?
Thanks !!!!!!


chris123price wrote:Hello,
I have a list of address e.g
23 ABC road, city, post code, UK
When the user selects one of these address I want to go to google maps to that location.
Can someone please provide a code example?
Thanks !!!!!!

/*
* From the dev guide:
* URI
geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
*/
Intent shareIntent = new Intent(Intent.ACTION_VIEW);
String uri = "geo:" + latitude + ","+ longitude;
shareIntent.setData(Uri.parse(uri));
startActivity(shareIntent);



how about searching a business with a given lat & long? i want to pass my user's location to google maps and tell it to search for a keyword, like 'pizza'
String uri = "geo:" + latitude + ","+ longitude;String uri = "geo:" + latitude + ","+ longitude + "?q=pizza";
Users browsing this forum: No registered users and 2 guests