Software Archive
Read-only legacy content
17061 Discussions

calling external app

G__K_
Beginner
290 Views

Hi,


I'm a newbee in the mobile development. I'm trying to start an external navigation app (like Navigon) and start routing to a given location.
Example:
var uri = "navigon://coordinate/DestinationOne/12.123456/50.123456";


If I test the app on iOS the routing will be start successfully.
If I try this under Android I receive a application error (protocol not supported).


From navigon I found this description:

Intentaction:

<actionandroid:name="android.intent.action.navigon.START_PUBLIC" />

Intentextras:

1.Locationcoordinates.

String INTENT_EXTRA_KEY_LATITUDE = "latitude";

String INTENT_EXTRA_KEY_LONGITUDE = "longitude";

Long/Latarefloatvaluesin decimaldegreeformat(+-DDD.DDDDD).

Example:

Intentintent= newIntent(INTENT_ACTION_START_MN);

intent.putExtra(INTENT_EXTRA_KEY_LATITUDE, 46.12345f);

intent.putExtra(INTENT_EXTRA_KEY_LONGITUDE, 23.12345f);


But I don't know, how can I add this intent in the XDK based app?

0 Kudos
1 Reply
Reply