【问题标题】:Application in DroidScript is crashed when method OnMessage from sms service receive sms with symbolic phone number当来自短信服务的方法 OnMessage 收到带有符号电话号码的短信时,DroidScript 中的应用程序崩溃
【发布时间】:2017-09-22 08:03:21
【问题描述】:

所以,代码

function Onstage() {
  sms = app.CreateSMS();
  sms.SetOnMessage(sms_OnMessage);
}

function sms_OnMessage (number, message) {
  app.ShowPopup(number + ': ' + message);
}

当带有符号电话号码的短信来时崩溃。 知道如何解决吗?

【问题讨论】:

  • 对不起,函数 OnStart(),不是 Onstage()

标签: javascript droidscript


【解决方案1】:

在这里回答:https://groups.google.com/forum/m/#!starred/androidscript/lmCi2wKTqOs

如果链接将被破坏 - 在“DroidScript”组中找到类似的主题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-30
    • 2012-11-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多