Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 15
Registered: ‎01-02-2012
My Device: playbook
My Carrier: digitel
Accepted Solution

Invocation framework icon problem



I'm having this problem, i've created a group data model to get store the info of the possibles app to invoke for share a picture.

I populate the data model with no problem, include the .label, the .name and .icon of each target.


But then when i try to use the icon with the url provided by the target app and my app says it can't be found.


Im receiving this url for foursquare




This is the log error:


Aug 09 00:17:16.274 com.example.Camculator.testDev__Camculatorfdc2d092.9199832 default 9000 WARNING Image not found: "/apps/com.foursquare.blackberry.gYABgBY3zYaCRi7CDRw5ChZRJ18/public/native/icon.png"


And it's happening with every other inoked targets, bbm, whatsapp etc.


What could be the problem?



Posts: 271
Registered: ‎05-29-2013
My Device: BlackBerry Z10
My Carrier: MTS

Re: Invocation framework icon problem

Could you show the code which works and which is not? Also, have you tried to give Shared File permission to your app?
NSR Reader for BlackBerry 10 @NSRReader on Twitter
Me @xelfium on Twitter
Posts: 15
Registered: ‎01-02-2012
My Device: playbook
My Carrier: digitel

Re: Invocation framework icon problem - URL PROBLEM

Ok i found it


I tried with my Z10 and the icon were shown but in the dev alpha not! 


So i checked the os version of the dev alpha is and the z10 is


The previous os version when you're trying to find a file outside of your app directories you have to append "file://" to reach it. I knew that but it never saw the double colon i was trying with "file://", my bad


so the code would be like this


QString direc="file://"+target.icon().toString(); //append the file://

QVariantMap entry;
entry["imageSource"] = direc; // insert the information int the entry for the groupdatamodel

m_model->insert(entry);//insert the entry int the datamodel


direc will take this vale for foursquare



then read it in my list item in qml


ListView {
dataModel: model


listItemComponents: [
ListItemComponent {
 StandardListItem {
 title: ListItemData.label
 imageSource: ListItemData.imageSource
}}]} ...


attachedObjects: [

GroupDataModel {
id: model
objectName: "modelo"




This work!


Thank you