write a program to capture an image using camera and display it in android code example
Example: open camera or gallery on button click android
// Android Open Camera
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivity(intent);