This project is used for Pick image from gallery and capture image from the camera for activity and fragment both.
Check out this blog - http://www.ourstudyplan.com/2018/04/how-to-pick-image-from-gallery-and.html
Get Full Source code - https://github.com/rohitguptanm/MediaPicker
MediaPicker