• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Call intent google navigation.

I found a way to do this, but I need to pass more parameters for the Navigation to trace the route that I really want.
I'm using the Uri
"google.navigation: q =" + myDestAddress;
or
"google.navigation: ll =" MyLat + + "," + MyLong ";

I found a way to set the mode. (walk)
"mode = &w".

What I need is to determine which route it should start. For example, the navigation always suggested the shortest route (route 0), I need it to start on the alternate route (Route 1 or Route 2) that are the alternatives that Google brings (I going determine which route should initiate).

Can anyone help?

code:
startActivity (new Intent (Intent.ACTION_VIEW, Uri.parse ("google.navigation:ll = 38.895227,-77.036436&mode=w")));
 
Back
Top Bottom