Google maps driving mode url scheme not working on Android -


i trying call external google maps app android app.

intent mintent = new intent(intent.action_view, uri.parse("http://maps.google.com/maps?saddr=" + stringlatitude + "," + stringlongitude + "&daddr=" + latitud + "," + longitud+"&dirflg=d"));  startactivity(mintent); 

it works on android 2.3.6.

but not on android 4.2, first time click in button executes code google maps opened correctly nothing driving mode appears there.

but once go main app click again in button works fine. fails on first attempt.

i cannot understand going on

any clue?

i using following code working fine on android 4.2

intent = new intent(android.content.intent.action_view,             uri.parse("http://maps.google.com/maps?saddr="+a+","+b+"&daddr="+c+","+d+"&mode=driving")); i.setclassname("com.google.android.apps.maps", "com.google.android.maps.mapsactivity"); startactivity(i); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -