我尝试通过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
感谢任何帮助。感谢