Make a phone call programatically using Libgdx

若如初见. 提交于 2019-12-21 23:58:05

问题


I'm creating an app using libgdx. In the contact page I would like, as for the email ( Gdx.net.openURI("mailto:cippa@lippa.com"); ), give the chance to made a phone call by clicking on the phone number.

Is this possible using libgdx? Or I have to do this twice, using first Android and then iOS?

(Like in this question: How to make a phone call programmatically? )

Thank you!


EDIT

How is possible to make a phone callprogrammatically in JAVA for iOS? Because for Android is clear, simple and done, but for iOS, without using objectiveC?


回答1:


As for the edited question (IOs phone call in Java), I haven't tested this code, but I think it should work:

UIApplication.getSharedApplication().openURL(new NSURL("telprompt://" + number));


来源:https://stackoverflow.com/questions/24867433/make-a-phone-call-programatically-using-libgdx

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