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

Java Development

Reply
Contributor
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,

Rajapandian.K

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

Re: How to refer Images in Dependency project?

I had to help someone with something similar to this:

http://supportforums.blackberry.com/t5/Java-Development/How-can-I-place-resources-in-a-separate-cod/...

 

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.