Sample project using Picker library for attach image from Gallery or Camera.
You can checkout the source code of this project.
git clone https://github.com/kredibel-id/SamplePicker.git
Then open this sample project with Android Studio or Intellij IDEA.