【发布时间】:2014-06-10 20:05:40
【问题描述】:
我有一个 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 拨打电话/打开拨号器
【问题讨论】:
标签: java gwt cordova phone-call