Hi, I have two applications installed and I want to read a file from 1st app that is stored in the directory of the 2nd app.
How can I set the xml related to FileProvider of 1st app? Thanks
The file is stored in this path of 1st app:
AndroidManifest of 1st app
How can I set the xml related to FileProvider of 1st app? Thanks
The file is stored in this path of 1st app:
B4X:
RuntimePermissions.GetSafeDirDefaultExternal("") + "/dwl/files"
AndroidManifest of 1st app
B4X:
AddApplicationText(<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/fileprovider_paths"/>
</provider>)
CreateResource(xml,fileprovider_paths,
<paths>
<external-files-path
name="apk_update"
path="/dwl/files/"/> '2nd app
</paths>)
Last edited: