android - Launching the google maps app from within my app -


i've been searching around internet, android dev guide , stackoverflow 2 hours , can't seem find answer i'm looking i'm going go ahead , ask.

i'm building app has button called "find nearby" that's purpose when user clicks on it, call on google maps app using perimeters set in place. not want use mapview within app, want launch , use full google maps app itself.

now specific, have permissions needed , maps url inside of manifest. have of application code set in place (buttons, xml, classes etc) , ready , usable other code launch google maps app , once again, have looked on here, google searching, various books, , android dev guide no avail.

i need know code need put app enable launch actual, full google maps app within app , not mapview. assistance welcomed

string uri = "geo:"+ latitude + "," + longitude; startactivity(new intent(android.content.intent.action_view, uri.parse(uri))); 

at android sdk documentation, can see below options can try in above uri string value.

enter image description here

for more info refer this: http://developer.android.com/guide/appendix/g-app-intents.html


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -