Open Google Maps directly from application

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Open Google Maps directly from application

Postby andreleitao » Mon Sep 28, 2009 2:04 pm

Hi, I'm trying to show a route from Google Maps triggered from my application. I wrote this code below:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  2. startActivity(new Intent(Intent.ACTION_VIEW, Uri
  3.                                         .parse("" +lat1+","+lng1+ "&daddr=" +lat2+","+lng2)));
Parsed in 0.032 seconds, using GeSHi

When I execute this, device show me two options: open Google Maps from a browser or open Google Maps directly. I would like to open Google Maps directly, with no options menu before the action For example, when I call startActivity (code above) GMaps would be opened with no interference. Is it possible?

Thanks. :)
Experienced Developer
Experienced Developer
Posts: 70
Joined: Tue Mar 10, 2009 9:56 pm
Location: Recife - Brazil


Return to Map Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests