Save Photo from Camera in Android, Fix NullPointerException


Save a picture to the SD Card from the camera in Android by using ANDROID_IMAGE_CAPTURE and Intent.putExtra. This also fixes a potential NullPointerException when you use the camera and (Bitmap) data.getExtras().get(“data”);

Source code:
This video is part of a playlist, available here:

Source: Youtube