Hi all
I tried to run an local web page across the webview in an Android 30 device, this did not work because access is not allowed (this appeared in the webview itself)
I added storage permission to the manifest:
I also tried to use RuntimePermissions:
NOTE: All files such as images and text files can be run, the problem only on the web page.
Thanks.
I tried to run an local web page across the webview in an Android 30 device, this did not work because access is not allowed (this appeared in the webview itself)
B4X:
webView.LoadUrl("file://" & File.Combine(File.DirInternal, "/data/web/myWebPage.html"))
I added storage permission to the manifest:
B4X:
AddManifestText(
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />
)
I also tried to use RuntimePermissions:
B4X:
Dim rp As RuntimePermissions
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
NOTE: All files such as images and text files can be run, the problem only on the web page.
Thanks.