Good all the time of day. The question is not usual, as for me;) There is a folder in the application root, create it programmatically and save the photo from the camera there. The situation is this - you need to have no access to the folder from the outside, i.e. the folder is private, and this has already been done, but at the same time it is required that the folder be visible in the gallery. Are there any solutions for such situations?
1 answer
Well, not everything is hopeless. There is a small detail here: the fact is that the image icons are stored in the gallery, when clicked, the widget pulls the picture from the original location of the picture.
That is, you can try to deceive the system by slipping the thumbnail on it, but not giving the picture itself (or even more cunning, giving it a picture).
This whole canoe with thumbnail image is controlled by MediaScanner - look at it. I think that if you try, you can depict something with it.
As a result (if possible) there will be such a picture: the user will see in the gallery the icons of your private pictures, but will not be able to see their originals, or, instead of the original, you will see a figure - some kind of stub.
- A good idea! - djbolya
- @Nuclominus so happened or not? Most curious - Barmaley
- It was decided that he created a similar folder in the gallery and copied the photo there) - Nuclominus