Picking an Image and Taking Photo in Android – Java source code

This is Java source code for Android, providing you with two functions: to take a photo using camera and to pick an image from gallery.

Taking photo and picking an image from device requires these permissions on your manifest file:

Do you like this post? Consider a donation 😀

Published by


Habibie is an Indonesian freelance frontend-backend web programmer and cross platform mobile app developer. He's also good at graphics design, video editing, visual effects and animation.

Leave a Reply

Your email address will not be published. Required fields are marked *