How to open camera to take and save picture in android app using android studio

0 3,955

How to open camera to take and save picture in android app using android studio

In this tut, i will show you how you can open camera in your android app and can save pic in android apps.

Activity main

in mainactivity.java first, we will make a call to button and image view  id’s from the activity.xml using findviewbyid,and set a ClickListener to a button and onActivityResult method we will use IF condition to check requested code and set an Intent in onClick method.

Activity_main.xml

We have RealtiveLayout with   TextView ,Button, and ImageView.

Download Source codes

Comments

comments

Leave A Reply

Your email address will not be published.