10-18-2010 06:18 AM
My application downloads images off the internet and stores them into the device's file system. The problem I have is that I don't know where to store those images. If I store them in the pictures folder in the device memory or the SD card, they appear in the phones pictures gallery which is not acceptable.
I need advice on where to store those images.
Solved! Go to Solution.
10-18-2010 07:33 AM
welcome to the support forums.
if your application is the sole user of the images you can store them in a different format or with another extension, this avoids them being listed in the overview.
more complicated would be encryption, but also very possible, just take the byte array of each picture, encrypt it and add it as a file then.
10-25-2010 12:39 PM
Yes, my application is the sole user of the images. I tried changing the extension but they are still showing in the picture gallery.
Is there any other way to hide them other than encryption?
10-25-2010 01:30 PM
You can create your own folder, such as "file:///store/home/user/myAppDir/" and then store your images there. Encryption will make the images unreadable, but won't hide them.
10-25-2010 01:33 PM
10-26-2010 10:20 AM
Changing the file extension DID work. Seems like the first time I tried it the picture gallery was caching the images thumbnails or something. Thanks all for your help and sorry for the confusion.
12-03-2010 05:26 AM
even though i am late but i found a better solution and wanted to share it, When you use FileConnection class methods mkdir or create to save file/folders in SD Card afterwards call the setHidden(true) method.