This fragment may help you. AFAIK turn by turn voice guided navigation is intended to be used from user's current location to destination. In the code below include the destination address in the place of "destAddr". destAddr in this case is a complete street address, not the GeoPoint. GeoPoints didnt work for me, I used Google's reverse geo coder to convert my geopoint into a street adress and then pass that with an intent like so:
- Code: Select all
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + destAddr));
If you are only looking for directions displayed on a map then try reading this:http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android
Let us know what works for you and how.