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
One way is to to name your images directory with a name that starts with a period, that will hide the images from the media scanners. So in your case the name might be ".Car Camera".
Alternatively, you can put an empty file in the directory (alongside your images) with the name ".nomedia".
Here's a link that describes these options it a bit more.