Good morning,
I have a galaxy S6 with 7.0.0 and i try this camera intent. At example, everything works fine. When i implement same code at my project i get this error:
and camera does not open. Code is identically the same.
Thank you for your time.
EDIT:
manifest:
I have added file providers because i share pic at other part of app.
I have a galaxy S6 with 7.0.0 and i try this camera intent. At example, everything works fine. When i implement same code at my project i get this error:
B4X:
(FileUriExposedException) android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.dreamon.crosswod/files/tempimage.jpg exposed beyond app through ClipData.Item.getUri()
Thank you for your time.
EDIT:
manifest:
B4X:
AddManifestText(
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<external-files-path name="name" path="shared" />
)
Last edited: