无法在Blackberry Z10上调用SMS

时间:2014-12-03 06:26:34

标签: c++ blackberry sms qml invocation

我尝试通过QML在按钮点击操作中调用来自黑莓的短信,但显示错误。这是我的代码。

    Button {
              id:smsTrigger
              onClicked: {
                  smsSendInvocation.query.updateQuery();
                  smsSendInvocation.trigger(smsSendInvocation.query.invokeActionId);
              }
          }

 attachedObjects: [

  Invocation {
                id: smsSendInvocation
                query.mimeType: "application/text_messaging"
                query.invokeTargetId: "sys.pim.text_messaging.smsuri"
                query.invokeActionId: "bb.action.COMPOSE"
                query.data: "body::Hello world!
                to:json:[\"2125551212\",\"9785551234\"]"

            }]

这是它显示的错误

InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
   mimeType="application/text_messaging"
   uri=QUrl("") 
   data= "body::Hello world!
                to:json:["2125551212","9785551234"]" 
   metadata= QMap() 
   perimeter= 0 
   action= "bb.action.COMPOSE" 
   target= "sys.pim.text_messaging.smsuri" 
   invokerIncluded= false 
InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent

感谢任何帮助。感谢

0 个答案:

没有答案