I am making an app to click pics and save that images in app folder.I want my images to be private to application only and not viewable in gallery. But with the code I have writ
Add empty file with name ".nomedia" in this folder. Then MediaStore will not scan this folder.
Also if you want to show to user media only from certain folder, you can use my small and simple open source library. Check TestActivity to see how to use that.