Path to files in Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
TrevorRoberts
Posts: 4
Joined: Sun Sep 13, 2020 1:25 pm

Path to files in Android

Post by TrevorRoberts » Sun Oct 04, 2020 3:26 pm

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!

mimu
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 72
Joined: Tue Mar 05, 2013 7:00 pm
Location: Berlin
Contact:

Re: Path to files in Android

Post by mimu » Sun Oct 04, 2020 4:29 pm


TrevorRoberts
Posts: 4
Joined: Sun Sep 13, 2020 1:25 pm

Re: Path to files in Android

Post by TrevorRoberts » Mon Oct 05, 2020 9:11 am

Thank you @mimu. Unfortunately, that still didn't work for me. I'll check the manuals etc. again.

Post Reply

Return to “Android Deployment”