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
Developer
trivedirujuta
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

library files problem

Hi,

I am making an application that stores some sound files. I have put those sound files in another project (library). When I try to play those files it say-file not  found. Please help me!!

Rujuta Trivedi
Please use plain text.
Developer
robybd
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

Re: library files problem

Hi, There could be several problems, can you please place code sample how you're using the library? Also, does it tun on the simulator?
Please use plain text.
Developer
trivedirujuta
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: library files problem

i have made one cldc project. then there is another project of type library.in tht project musicListen/abc.mp3

When I use the song to play. I use /musicListen/abc.mp3. The same thing works when it is in same project(not library).

Rujuta Trivedi
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: library files problem

Are you trying to access these sound files from an application or are you calling a function in the library that retrieves the sound file? If you are calling the function in the library then it should work, otherwise I don't know if trying to access a resource from a different application/library is blocked for security purposes or something similar.

---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.
Please use plain text.
Developer
trivedirujuta
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: library files problem

No,I havn't put any function in tht library project.All functions of calling are in main cldc project

Rujuta Trivedi
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: library files problem

Sorry for being late, if you haven't resolved this issue yourself then try to make a function in the library to retrieve the InputStream. If it still doesn't work then are you sure you are using the correct name. If it does work then it is a security function that is most likely blocking the retrieval of the resources.

---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.
Please use plain text.