如何使用GWT phonegap打开拨号屏幕/拨打电话

时间:2014-06-10 20:05:40

标签: java gwt cordova phone-call

我有一个GWT应用程序正在使用phonegap(Cordova)将其变成移动应用程序。

我想以原生方式(无论是Android还是iOS)拨打电话如何使用GWT API执行此操作。 http://www.openlogic.com/wazi/bid/313383/Using-GWT-and-PhoneGap-for-complex-mobile-applications似乎提供了一些指示,但似乎太难理解了

该链接中的有用信息是

Access basic functions through special URIs URI scheme Meaning href="tel:555-5555" href="mailto:someone@somewhere?subject=something...&body=some.text..."
href="sms:555-5555?body=some.text..."
href="mailto:someone@somewhere?subject=something...&body=some.text..." **Meaning** Open the dialer application to call the given phone number. Open the SMS application to send an SMS with the given body text to the provided phone number. Open the email application to write a message to the provided email account with the given subject and body. There are more options, such as sending cc or bcc copies. In the sample application, I added a couple of hyperlinks to show how to call someone or how to send an SMS. Of course, by using GWT DOM manipulation methods, you could set up the URIs dynamically, instead of hardcoding them as I did in the sample.

有人可以告诉我如何使用GWT拨打电话/打开拨号器

1 个答案:

答案 0 :(得分:0)

Make a phone call programatically using Libgdx

看看这个答案对你有好处。

我正在使用libgdx,我正在尝试让应用程序使用Android和iOS进行手机通话。但是,如果在Android中使用本机做这件事很简单,另一方面我找不到一种方法来在java中对iOS做同样的事情而不使用目标c。