android studio layout galery and camera 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);
// Android Open Camera
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivity(intent);