Welcome!

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

Adobe AIR Development

Reply
Developer
spoutnik
Posts: 39
Registered: ‎07-06-2012
My Device: DevAlpha, PlayBook

Invocation Target Icon URL can not be found

Hi,

 

I am struggeling with the share stuff. Right now I got a few hardcoded items to share with BBM or Mail. I would like to invoke a card that lets the user choose what app to share with. I could not find any way to do this without coding it myself. 

Actually it seems rather simple. Ask the Invocation manager to list all actions and then build the gui for it. Each target has a label and an icon. Problem is that I can not seem to load these icons:

URL Not Found. URL: app:/apps/sys.bbm.gYABgLOJBR2Vz7FzS.kdgJchuag/public/native/ca_bbm_groups.png

.. I just do

image.setImage(target.icon);

do you know if there is something else needed? Or is it simply impossible for Air to read these icons?

Thank you,

Toby

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Invocation Target Icon URL can not be found

Prefix it with 'file://'
So image.setImage( 'file://' + target.icon );
Please use plain text.