当来自短信服务的方法 OnMessage 收到带有符号 phone 号码的短信时,DroidScript 中的应用程序崩溃
Application in DroidScript is crashed when method OnMessage from sms service receive sms with symbolic phone number
所以,代码
function Onstage() {
sms = app.CreateSMS();
sms.SetOnMessage(sms_OnMessage);
}
function sms_OnMessage (number, message) {
app.ShowPopup(number + ': ' + message);
}
收到带有符号 phone 号码的短信时崩溃。
知道如何解决吗?
在这里回答:https://groups.google.com/forum/m/#!starred/androidscript/lmCi2wKTqOs
如果 link 会被破坏 - 在 "DroidScript" 组中找到类似的主题。
所以,代码
function Onstage() {
sms = app.CreateSMS();
sms.SetOnMessage(sms_OnMessage);
}
function sms_OnMessage (number, message) {
app.ShowPopup(number + ': ' + message);
}
收到带有符号 phone 号码的短信时崩溃。 知道如何解决吗?
在这里回答:https://groups.google.com/forum/m/#!starred/androidscript/lmCi2wKTqOs
如果 link 会被破坏 - 在 "DroidScript" 组中找到类似的主题。