11-07-2012 01:30 PM
georg22 wrote:
I would like to share a few lines of text including line breaks ("\n"). Is it possible?
of course you can include
\n
in your text and provide thru Invocation Framework
11-14-2012 02:12 PM
If you wish to start a BBM Chat sharing data, you can do it like this:
InvokeActionItem {
title: "Share Text Over BBM"
query {
mimeType: "text/plain"
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
data: "This is some text to share."
}
}
11-14-2012 02:32 PM
MSohm wrote:
If you wish to start a BBM Chat sharing data, you can do it like this:
InvokeActionItem { title: "Share Text Over BBM" query { mimeType: "text/plain" invokeTargetId: "sys.bbm.sharehandler" invokeActionId: "bb.action.SHARE" data: "This is some text to share." } }
I read that query attributes are read-only
So - if data isn't static, I'm doing it his way:
InvokeActionItem { id: shareAction ActionBar.placement: ActionBarPlacement.OnBar query { mimeType: "image/png" invokeActionId: "bb.action.SHARE" invokeTargetId: "io.ods.bb10.card.upload.previewer" } onTriggered: { // trick: all properties from query are read-only // but we can use the data, which is read-write data = picker.selectedFile } }
12-18-2012 01:18 AM
Hi, if I want to share text to BBM group how to do that??
if I comment
invokeTargetId: "sys.bbm.sharehandler"
there is a list and can choose for BBM group
But if I want directly to bbm group how to do that?
Is invokeTargetId must change to something??
Can I get the complete list for
- invokeTargetId
- InvokeActionId
- mimeType
all value that posible for that properties
Thanks
12-21-2012 08:39 AM - edited 12-21-2012 08:42 AM
Yes, it would be nice to know how to specifically invoke BB Group, Text message, Email, etc. RIM needs to have more complete documentation on this. They focus too much on sharing over BBM and neglect other built-in share methods.
12-21-2012 09:01 AM
InvokeActionItem {
id: invoke2
query {
mimeType: "text/plain"
invokeActionId: "bb.action.SHARE"
}
onTriggered: {
data = [textConv.text]
}
}
I think the code above should work ! The invocation framework should prompt the user with the right apps to share some text : BBM, text message, email,...
Unfortunatly when you run this code on the alpha device, only 3 options are available : BBM, BBM Group and NFC. I think (and I hope) it's because all apps are not installed...
12-21-2012 09:32 AM
I need to be able to specifically invoke SMS only. Is there a specific invokeTargetId for that?
01-07-2013 09:42 AM
Kaz32 wrote:
Hi, if I want to share text to BBM group how to do that??
if I comment
invokeTargetId: "sys.bbm.sharehandler"there is a list and can choose for BBM group
But if I want directly to bbm group how to do that?
Is invokeTargetId must change to something??
Can I get the complete list for
- invokeTargetId
- InvokeActionId
- mimeType
all value that posible for that properties
Thanks
sys.bbgroups.sharehandler is the target id for BBM Groups. Here are a couple of examples on how to share text or an image with a BBM group. The user will be prompted to select the group to share with.
InvokeActionItem {
title: "Share Text Over BBM Group"
query {
mimeType: "text/plain"
invokeTargetId: "sys.bbgroups.sharehandler"
invokeActionId: "bb.action.SHARE"
data: "This is some text to share in a group."
}
},
InvokeActionItem {
title: "Share Image Over BBM Group"
query {
invokeTargetId: "sys.bbgroups.sharehandler"
invokeActionId: "bb.action.SHARE"
uri: "file:///accounts/1000/shared/photos/avatar.png"
}
}
01-14-2013 05:47 AM
MSohm wrote:
Kaz32 wrote:Hi, if I want to share text to BBM group how to do that??
if I comment
invokeTargetId: "sys.bbm.sharehandler"there is a list and can choose for BBM group
But if I want directly to bbm group how to do that?
I'm running it from within my C++ code and don't get such a list to select the target. It shares only directly to BBM.
What have I to use to get the Dialog to share via BBM, SMS, Mail, Bluetooth, NFC, ... ?
01-14-2013 12:54 PM
This code will bring up the dialog asking the user to choose the application they wish to use to share.
void BBMInvocation::shareImageBound()
{
QString path = QDir::current().absoluteFilePath("shared/photos/av atar.png");
m_pInvocation = Invocation::create(
InvokeQuery::create().parent(this).mimeType("image /png").uri(
QUrl::fromLocalFile(path)));
QObject::connect(m_pInvocation, SIGNAL(armed()), this, SLOT(onArmed()));
QObject::connect(m_pInvocation, SIGNAL(finished()), m_pInvocation,
SLOT(deleteLater()));
}
void BBMInvocation::onArmed()
{
m_pInvocation->trigger("bb.action.SHARE");
}