Page 1 of 1

Path to files in Android

Posted: Sun Oct 04, 2020 3:26 pm
by TrevorRoberts
Hi,

I see that a lot of people seem to have trouble with this. I have tried to find a solution before posting (in fact, I've spent several hours on this).

I am trying to load a 'local' HTML page into a browser widget. It works perfectly on the Windows Desktop, but not in my Android App.

I have tried using specialFolderPath("resources"), specialFolderPath("engine") and specialFolderPath("documents"). In the end, after using documents, I get this error:

Web page not available
The web page at file:///data/user/0/com-dot-myco-dot-myapp/files/file-dot-html could not be loaded because:
net::ERR_FILE_NOT_FOUND

So, I am unable to load local files into a Browser widget.

I apologise if this has been answered - I have been unable to find an answer that works with the Browser widget. I'd greatly appreciate any help with this as my Apps always use at least one or two HTML pages, specifically for About/FAQ pages.

Thanks in advance!

Re: Path to files in Android

Posted: Sun Oct 04, 2020 4:29 pm
by mimu

Re: Path to files in Android

Posted: Mon Oct 05, 2020 9:11 am
by TrevorRoberts
Thank you @mimu. Unfortunately, that still didn't work for me. I'll check the manuals etc. again.