10-19-2012 06:02 AM
Hi,
I want to create bound invoke Query using invocation framework. I want to know the Target Id for the BBM. I search in the documention of the invocation framwork but did not find target id for the BBM.
And also in invoke query can we give multiple target id in one query?
Thanks,
Megha.
10-19-2012 08:57 AM
10-22-2012 12:22 AM
Hi peter,
I tried with invokeTargetId which you suggest but that also did not work and it will not display share option.
Code:
InvokeActionItem {
ActionBar.placement: ActionBarPlacement.OnBar
title: "Share"
query {
mimeType: "image/jpg"
// uri: "file:///accounts/1000/shared/camera/IMG_00000044.
uri: setURIString(photoPage.imageSource)
invokeTargetId: "sys.bbm.gYABgLOJBR2Vz7FzS.kdgJchuag"
}
}
10-22-2012 12:54 AM
10-22-2012 03:05 AM
Hi,
In this case how can i know the folder name of each and every device? To resolve this issue i tried with following code from the bound query documentation,
InvokeManager *iManager = new InvokeManager(this);
InvokeQueryTargetsRequest iQuery;
iQuery.setAction("bb.action.SHARE");
iQuery.setMimeType("image.png");
InvokeQueryTargetsReply *iQueryReply = iManager->queryTargets(iQuery);
QObject::connect(iQueryReply, SIGNAL(finished()), this,
SLOT(myQueryReplySlot()));
In document they said that this will return you number of applcation which support png images but how can i know how many are supported.
10-22-2012 09:02 AM
tommy20 wrote:
Even this folder "sys.bbm.gYABgLOJBR2Vz7FzS.kdgJchuag" works for you this case/this time, by looking at this name (like a random string) I don't think this folder name is the same for all devices and all future SDK versions.
Actually, although it looks random, it's not, and it should** remain the same in future. As with all of our apps, which have similar ids, this string is both unique and permanent, and the design of App World and the OS relies on these things being true. Without that, installing an update to your app would put it into a new folder, without access to the user's existing data for that app.
This is also the basis of the "bound" invocation approach, if I understood it correctly. (Not having done anything with IF yet, I may have misunderstood that point, but it doesn't change what I'm saying about the app id above.)
** I say "should" because of course I don't know that RIM will keep this particular name/id for the the BBM app once they launch, but whatever it is at launch, that's what it will stay.
11-09-2012 06:45 AM
Hi Peter,
I tried with the target id which you given in your previous post but it result in the following error.
Below is the code and error message i received.
Error Message: InvocationWrapper:
nQueryFinished: no matching result from Menu Service for query
Query Code:
InvokeActionItem {
ActionBar.placement: ActionBarPlacement.InOverflow
title: "Share"
query {
mimeType: "image/jpg"
uri: "file:///accounts/1000/shared/camera/IMG_00000044.
//uri: setURIString(photoPage.imageSource)
// invokeActionId: "bb.action.SHARE"
invokeTargetId: "sys.bbm.gYABgLOJBR2Vz7FzS.kdgJchuag"
}
}
11-09-2012 02:26 PM
Our next BlackBerry Native SDK release will include a full set of documentation for all the invocation parameters for all invokable RIM applications.
Stay tuned, this is coming.