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

Java Development

Posts: 13
Registered: ‎05-12-2010
My Device: Curve
My Carrier: GSM
Accepted Solution

How to refer Images in Dependency project?

Hi All,


        I have two projects , one dependent on the other one, i made one project as Library project and another one as a CLDC Application. I have some images stored in the Library Project, and i want to access that images from the CLDC Application. I do not know how to access the images by refering which path. Any body know the solution please help me.


Thanks and Regards,


Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: How to refer Images in Dependency project?

I had to help someone with something similar to this:



You can add an additional function so that it gets the EncodedImage and returns it.


Actually I just realized that EncodedImage.getEncodedImageResource has support for specifying the module that contains the resource.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.