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

Native Development

Reply
Developer
Posts: 324
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
Accepted Solution

Where my app should store images when I don't want to see them in built in Gallery app?

I was storing cached images in shared/downloads/myappname but they appeared in Gallery app.

 

So I stored them in tmp/ but it looks like they are disappearing after app restart.

 

Then I moved them int data/ which looks OK but I can't use them in MediaPlayer as NowPlaying icon.

 

What is best place where to store cached images from internet that I want to share with other apps?

 

Is there any way how to programatically exclude some pictures from Gallery app?

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Where my app should store images when I don't want to see them in built in Gallery app?

[ Edited ]

If I'm not mistaken, the misc folder is excluded.

 

Files or folders starting with a dot should be skipped, as the convention on QNX is to hide those files/folders from the user. Not sure if the media indexer adheres to this.

 

You could also try placing a .metadata_never_index or .noindex file in the folder containing your images (note the dot at the start)

 

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Posts: 324
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB

Re: Where my app should store images when I don't want to see them in built in Gallery app?

Awesome, thanks a lot. It is exactly what I was looking for.
--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net