In this post i explain you how to save camera capture image in ListView android. This code is very useful is you dynamically add image in ListView.

Step 1. Create new project in your android studio.

Step 2. Add read write permission in your manifest file.

Step 3. I also add config change in activity to solve camera orientation issue mainly occur in Samsung phones (Screen orientate after save image and activity reload).

Step 4. Now open your activity_main.xml and add listview in it.

Step 5. Now create a new layout file you need to inflate that view in your listview where we set clicked image.

Step 6. Now create GetSet class.

Step 7. Now create a custom adapter for ListView android.

Step 8. Now open your MainActivity.java and paste this code.

Hope this help you 🙂