Hi,
Based on the samples, I configured the AndroidManifest.xml file:
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
</provider>
But I had another setting for image capture:
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data>
</provider>
The problem is if I set it to pdf I can't capture an image. If I set it to image, then the Pdf will be an empty file.
It also doesn't work if provider_paths and file_paths are both kept set.
Is there a workaround?
Regards:
Szepligeti Ferenc