问题描述
我正在使用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?
(就像这个问题:
)
(Like in this question:How to make a phone call programmatically?)
谢谢!
编辑
如何在JAVA for iOS中以程序方式拨打电话?
因为对于Android来说是清晰,简单和完成的,但对于iOS,不使用objectiveC?
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?
推荐答案
至于编辑过的问题(用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以编程方式拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!