I run into problem while using content uri and FileProvider on Android API 19 (Kitkat). Here\'s code that I use to open camera on device and record a video:
maybe you can try this one.
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT){ fileUri = Uri.fromFile(mTmpFile); } else { fileUri = FileProvider.getUriForFile(getContext(), getContext().getPackageName()+".provider",mTmpFile); }