Save Photo from Camera in Android, Fix NullPointerException

14

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: https://github.com/discospiff/PlantPlaces15s305
This video is part of a playlist, available here: https://www.youtube.com/playlist?list=PL73qvSDlAVVh5MO1Bfujfb_SDPABjJ2BY

Source: Youtube