问题描述
我正在使用libgdx创建一个应用程序.在我想要的联系页面中,关于电子邮件(Gdx.net.openURI("mailto:[email protected]");),点击电话号码即可拨打电话.
I'm creating an app using libgdx.In the contact page I would like, as for the email(Gdx.net.openURI("mailto:[email protected]");), give the chance to made a phone call by clicking on the phone number.
使用libgdx可以吗?还是我必须先使用Android然后再使用iOS两次?
Is this possible using libgdx?Or I have to do this twice, using first Android and then iOS?
(例如此问题:如何以编程方式拨打电话?)
编辑
如何在iOS的JAVA中以编程方式拨打电话?因为对于Android而言,它是清晰,简单且可完成的,但是对于iOS,则是不使用Objective-C?
How is possible to make a phone call programmatically in JAVA for iOS?Because for Android is clear, simple and done, but for iOS, without using Objective-C?
推荐答案
对于已编辑的问题(Java中的IO电话),我尚未测试此代码,但我认为它应该可以工作:
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));
这篇关于使用Libgdx以编程方式拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!