I developing an Android app with multiple activities. Then i will create a button when it pressed its open Map Application (pre-installed on device / default map application) and the map application showing the driving route (from the current location to destination location). The question is :
Its possible using other application (in this case Map Application) and launch it when pressed a button ?.
If that possible, how i set the coding on my activity file ?, to showing direction on map from the current location to destination location (in this application i set my place).
I Have googled the question, but i cant find. Can anyone give me the source or the tutorial (video, link) about my question ?.
UPDATE I've tried the same question like this Launching Google Maps Directions via an intent on Android ,but How to set from current location to known location ? is that possible ? :(
****PROBLEM RESOLVED** ** To open from my own app just use Intent implementation and to set from current location (automatic detected) to destination location (definition on intent) just lets plain/blank the source address, then force it open with google map (browser not allowed) because with browser, current location didnt work. Here the intent section i've used :
Uri.parse("http://maps.google.com/maps?saddr=&daddr=20.5666,45.345");
intent.setClassName("com.google.android.apps.maps","com.google.android.maps.MapsActivity");
startActivity(intent);