To fix the issue you can do I have tried the same code in my other project and is working perfectly fine. My problem here is that when I click CHOOSE PHOTO and it should open the gallery to choose pictures to upload. However, mine is showing like this:
around this issue Android scan media file and those are shown when using content provider...when your run your app and take new camera at that time you just took new pics but default gallery doesn't know about that new pics cause they are not in content provider's list of media. I think adding this line after taking picture and before calling gallery will show the all latest pics taken from camera.
Does that help There is no single "native Android Gallery app". There are ~2 billion Android devices, spread across thousands of device models. There are hundreds of pre-installed "gallery" apps on those devices, as device manufacturers routinely ship their own. There are also "gallery" apps available for users to install from app markets. Their behaviors will vary. Many will use MediaStore to find the photos to view. You are not doing anything to arrange to have your image be indexed by the MediaStore. Use MediaScannerConnection and its scanFile() method, in onActivityResult(), to have the MediaStore update its catalog to include your image.
How to store pictures in same app like gallery after taking pictures with custom camera In android
I hope this helps . You can learn about android file storage management using this link. Android File Storage. You can read here about differences between Internal storage(Private Location) and external storage(Public location) . Data Storage Internal/External As you are not very clear with the description, so there can be 2 possibilities