Displaying a route between two points in google maps on android

Two questions:

NOTE: I am not implementing google maps in my application, I am passing google maps (the installed application) arguments

First: How do I find my current location in google maps?

Second: How would I tell google maps to display a route between two points.

Currently I use an activity to tell google maps to create two or more geopoints.

-------------Problems Reply------------

You find your current location using the system LocationManager. There's more information in the developer documentation.

For the second part, this isn't something that you'll be able to do without using the Google Maps libraries. There's no existing intent or registered URI for the Google Maps application that will draw directions between two points. Sorry!

Category:android Views:0 Time:2011-07-04

Related post

  • How to display mulitple markers at a time in google map in android 2011-11-23

    Hi iam displaying mulitple markers in google map in android.while iam displaying, the markers are displaying in the google map one by one.Here i want to display more than 50 markers.But according to my code the markers are displaying one by one and t

  • How to display a route between two geocoords in google maps? 2010-04-15

    Possible Duplicate: J2ME/Android/BlackBerry - driving directions, route between two locations I'm just writing an App for displaying the route between two coords (lat, long) in google maps view. Displaying an single coord (even with a marker) works f

  • How to draw a route by parsing xml to google map on android 2011-07-10

    How can i parse the XML file in URL that contains latitude and longitude which i will draw a route using this coordinates Here is the xml file <tgt_api> <tgt_trip> <id>1</id> <tgt_tourist> <id>1</id> <firs

  • How to draw points into google maps on android? 2012-04-16

    My problem is that i have a list of adresses and i must display a path from the first point to the last one passing throw all the other points like im going by car... I don't the right name for that functionality so i couldn't search it on google...

  • Show Current Location and Nearby Places and Route between two places using Google Maps API in Android 2011-12-08

    I need to develop an application using Google Maps in Android to locate my current location and need to find nearest location. (For example: Nearby police station from my current location.) It should accept my current location and output should displ

  • How can I parse out points and draw a route on a Google Map in Android? 2011-04-09

    How do I get points & draw the route on Google maps in Android OS? --------------Solutions------------- An example URL you're going to parse is... http://maps.googleapis.com/maps/api/directions/xml?origin=52.31,16.71&destination=51.27,6.75

  • Using Google KML to successfully draw routes/lines on web-based Google Map 2011-09-12

    I want to be able to draw routes on a web-based Google Map. I have spent quite a bit of time looking at the Google Maps API and I have written the following Javascript: $(document).ready(function () { $(function() { loadScript(); }); }); function ini

  • How To Display Google Map in android emulator?I tried this program in google AVD in android 2012-01-04

    Here is my code to display the google map in my android emulator using google AVD.... How to fix this problem?anybody can know this? Map.java: public class MapsActivity extends MapActivity { private MapView mapView; /** Called when the activity is fi

  • Plotting two routes at same time with google maps api 2012-03-14

    Brothers is it possible to plot two routes at same time with google maps api. For Example Route from city A to B and Route from city C to D In this case A,B and C,D are separated. Thanks. --------------Solutions------------- Here are two polylines on

  • How do I implement an application similar to google maps on android? 2009-09-18

    I have a couple of images on available to my program. They are parts of jigsaw puzzle (with rectangular pieces though). I wanted the look and feel similar to that of google maps in android. One way I could implement was to create a set of ImageViews

  • how to put Search on Google map in Android? 2010-01-19

    i am looking to put search on google map in android application can any one guide me how to achive this??? and want to display some text along with that perticular search location. any help would be appriciated. --------------Solutions------------- a

  • Open local KML File in Google Maps on Android 2010-05-28

    I have loaded a KML file onto an Android device. What's the easiest mechanism for loading an overlay of that KML file into Google Maps? I do not want to upload the KML file to the web but would rather open it locally. --------------Solutions---------

  • How to load only markers that's currently visible on the screen (Google maps on Android) 2010-08-05

    Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would

  • Launching Google Maps in Android, only gridlines are visible 2011-09-08

    It's been 3 months now and I am still having an issue when launching Google Maps using Android. I am still ending up with GridLines. I have seen several forum suggestions where they talk about using a wrong API key. I used the command below to genera

  • How to increase performance on google map for Android 2011-12-01

    I wonder if we can get the same behavior and performance in own Andorid app with Google map? If you are using SDK (native development) the performance is diff to what you can experience while using last Google map from Android market. Are there any t

  • what parameters to pass to invalidate(left, top,right,bottom) for google map on android? 2010-10-15

    what parameters do I pass to this function ? invalidate(left, top, right, bottom) for use with google map on android ? thanks - ahsan --------------Solutions------------- You pass whatever rectangle you need invalidated. It may be simpler to use the

  • Google map in android 2010-11-25

    I am trying to make simple google map Application in android. my Apps. is run fine but it doesn,t show google map, it just show grid on screen. i also obtain google API key for map.. Any help? Thanks. My Menifest file. --------------Solutions--------

  • regarding showing multiple locations in google map in android 2010-12-28

    I have to implement google map in android.Now the problem i am facing is I have to show multiple locations.I have shown single location in google map in android stimulator.Can anyone tell me how to implement it?? --------------Solutions-------------

  • Line between Two GeoPoints in Google map in android? 2011-03-10

    Hi I want to draw a line between 2 GeoPoints on Google map in android.Your help will be deeply appreciated. --------------Solutions------------- See: Connect points on map with lines You need to create a custom overlay, override the draw method and d

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.144 (s). 11 q(s)