我正在使用Flash Air 2.6开发Android应用程序。如何实现短信功能? 谢谢!
答案 0 :(得分:0)
这可能会有所帮助:
http://help.adobe.com/en_US/as3/iphone/WS789ea67d3e73a8b24b55b57a124b32b5b57-7ffe.html
str = "sms:1-415-555-1212";
var urlReq:URLReq = new URLRequest(str);
navigateToURL(urlReq);
答案 1 :(得分:0)
Air android原生扩展:
https://www.dropbox.com/s/gwkyz74r3ajp4p7/com.adobe.sendsms.ANESendSms.ane
许可:
<uses-permission android:name="android.permission.SEND_SMS" />
AS3:
import com.adobe.sendsms.ANESendSms;
import flash.events.StatusEvent;
private function sendSms():void {
var sms:ANESendSms = new ANESendSms();
sms.addEventListener(StatusEvent.STATUS, statusHandle);
sms.sendSms("667250202", "txt");
}
private function statusHandle(e:StatusEvent):void {
if (e.level == "sent_-1") {// sent ok
}
if (e.level == "delivered_-1") {// delivered ok
}
}