`
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.util.FileUtil.getImageFile(FileUtil.kt:46)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.util.FileUtil.getImageFile$default(FileUtil.kt:30)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.provider.CameraProvider.startCameraIntent(CameraProvider.kt:86)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.provider.CameraProvider.checkPermission(CameraProvider.kt:72)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.provider.CameraProvider.startIntent(CameraProvider.kt:61)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.ImagePickerActivity.loadBundle(ImagePickerActivity.kt:68)
2019-12-01 14:00:05.865 16921-16921/com.irondigitalmedia.keep W/System.err: at com.github.dhaval2404.imagepicker.ImagePickerActivity.onCreate(ImagePickerActivity.kt:47)`
Your code says this shouldn't ever happen.
else -> {
Log.e(TAG, "Image provider can not be null")
// Something went Wrong! This case should never happen
setError(getString(R.string.error_task_cancelled))
}
line 72. I'm not sure what's going on. Would you need anything else to help figure out what's going on? The permission is given i checked the app permissions it settings.
This works great on a physical device (note 9), but doesn't work on a virtual device.