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
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM
Accepted Solution

How to hide picture cache for not showing in media pictures

To all developer,

I have a problem that my application will save picture from web server and write it to JPEG file in device for cache..

But, the problem is, the picture is shown at media pictures...

How to hide the picture, so user can't edit or delete picture in media pictures?

Highlighted
Developer
Posts: 31
Registered: ‎08-07-2008
My Device: Not Specified

Re: How to hide picture cache for not showing in media pictures

[ Edited ]

Better to save those images to a diffrent folder so it won't displayed with other media pictures

 

You can create new folder with 

javax.microedition.io.file.FileConnection.mkdir()

 

http://www.blackberry.com/developers/docs/6.0.0api/javax/microedition/io/file/FileConnection.html#mk...

 

 

check this out.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

 

Hope this helps

Zac

Developer
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: How to hide picture cache for not showing in media pictures

I have already save it to another folder, but the works of media pictures is to scan all picture format file (including JPEG, png, etc)...

That's why my picture is still shown in media pictures...

Any other solution?

Thanxx...

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to hide picture cache for not showing in media pictures

You could save the file using a non image extension.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: How to hide picture cache for not showing in media pictures

Thanx for the solution!!! ^^