1

My question is I've a destination address, i've to show route to destinate location from current location with navigation of user current location.

I've tried some in stackoverflow only.. but not succeded. Maps with intent.

how can i achieve this requirement.


THanks in advance

Community
  • 1
  • 1
atluriajith
  • 762
  • 3
  • 17
  • 41

1 Answers1

4

this is how I do it

Intent NavIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + incAddress));
        startActivity(NavIntent);

intent starts up google navigation and gives directions to the address

tyczj
  • 71,600
  • 54
  • 194
  • 296
  • Thanks.. it works for me. but navigation location is working with only gps is turn on but apart from GPS i need to choose network like getting locaiton from mobile network or wifi. – atluriajith Apr 30 '12 at 05:46