Android Capturing an image From Camera Returns Empty Data [duplicate]
问题 This question already has answers here : Android Camera : data intent returns null (11 answers) Closed 2 years ago . While Capturing image in android app intent return null each time. Please see below the code which I am using. I have tried multiple ways to get the permission as well as intent set but still I am unable to get data. Action For Camera private void takePhotoFromCamera() { if(ActivityCompat.checkSelfPermission(ObservationsView.this, Manifest.permission.CAMERA) == PackageManager