Is it possible to invoke other mobile app from a code name one app

匆匆过客 提交于 2019-12-13 01:25:36

问题


I want to invoke google maps app by passing it location details from a code nameone mobile app. Is it possible?


回答1:


In Android here is the way to open any other app How to call one android application from another android application

Now in codename one you can use native interface to make native call http://www.codenameone.com/blog/native-interface.html

you can uses this CN1 native interface with iPhone as well but you have to write iOS code for that

You can invoke a 3rd party app from Codename One in all OS's using the Display.execute(String) call, this is described here.

For maps there is a better approach though. You can use Display.isOpenNativeNavigationAppSupported() & Display.openNativeNavigationApp(double latitude, double longitude).



来源:https://stackoverflow.com/questions/35138686/is-it-possible-to-invoke-other-mobile-app-from-a-code-name-one-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!