I am using camera intent to capture images in my App. The problem my app crashes on Android 5.0.2 while using camera. I am using intent from fragment. Below is
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
That means mHighQualityImageUri is null, in all likelihood. This will occur if you failed to hold onto that Uri using onSaveInstanceState(). It is entirely possible that your process will be terminated while your app is in the background and the camera app is in the foreground.