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

Web and WebWorks Development

Reply
Developer
csibbdev
Posts: 67
Registered: ‎09-23-2010
My Device: Curve
Accepted Solution

Icon path issue in setHomeScreenIcon

I am trying to refer to an image that I have included in the Images folder of the application and getting a message about the access not being set properly in the config.xml.

 

 

Is there some special syntax to refer to the files internal to a COD as opposed to a file on the filesystem?

 

Thanks

Developer
csibbdev
Posts: 67
Registered: ‎09-23-2010
My Device: Curve

Re: Icon path issue in setHomeScreenIcon

[ Edited ]

Or another way of asking the question - how do i whitelist an image already in the COD file so I can use it in this function/method ?

 

blackberry.app.setHomeScreenIcon("Images/iconNotify.png", true);

 

Developer
csibbdev
Posts: 67
Registered: ‎09-23-2010
My Device: Curve

Re: Icon path issue in setHomeScreenIcon

Found it - I think

 

blackberry.app.setHomeScreenIcon(" local:///Images/iconNotify.png", true);

 

Developer
bert2002
Posts: 172
Registered: ‎05-01-2010
My Device: Z10

Re: Icon path issue in setHomeScreenIcon

[ Edited ]

is working for me too, just needed to change "true" to "false" for the real icon and not the hover...



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de