I was trying to load a local file from the sdcard into a WebView. But since Android 4.1 it isn't working anymore, I always get the message: File not found and in LogCat
Unknown chromium error: -6.
I figured out the Problem and I just needed to add one more slash. Example:
We need now:
loadURL("file:///.../file.file");
instead of:
loadURL("file://.../file.file");
Just add one more slash and it works. I hope this is helpful for all with the same issue under Android 4.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With