使用Libgdx以编程方式拨打电话 [英] Make a phone call programatically using Libgdx

查看:120
本文介绍了使用Libgdx以编程方式拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用libgdx创建一个应用程序。
在我想要的联系页面中,电子邮件

Gdx.net.openURI(mailto:cippa@lippa.com);
),给通过点击电话号码打电话的机会。

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.

使用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以编程方式拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆