Page 1 of 1
FileRequest() Not Working on Android
Posted: Fri Jan 30, 2026 11:52 am
by PEB
Using the new Hollywood Player (11) for Android, the new file requester looks great! However, I get the following error no matter what file I select:
Error locking content://com.android.providers.media.documents/document!
Re: FileRequest() Not Working on Android
Posted: Sat Jan 31, 2026 3:20 pm
by airsoftsoftwair
Does this really happen in
FileRequest() or are you trying to do something with the file returned by
FileRequest()? Keep in mind that
FileRequest() now operates using Android's Scoped Access Framework (SAF) which means that the returned file specifications will be different from "normal" files because they can also point to files in the cloud etc. See
here for more information on how to deal with those content URIs.
Re: FileRequest() Not Working on Android
Posted: Sun Feb 01, 2026 1:29 am
by PEB
This is my code:
Code: Select all
f$=FileRequest("Select File")
NPrint(f$)
The error is reported "In function: FileRequest"
Re: FileRequest() Not Working on Android
Posted: Sun Feb 01, 2026 12:32 pm
by airsoftsoftwair
PEB wrote: ↑Sun Feb 01, 2026 1:29 am
This is my code:
Code: Select all
f$=FileRequest("Select File")
NPrint(f$)
The error is reported "In function: FileRequest"
So the file requester pops up and you are able to select a file and after you have selected a file you get the "error locking ..." error? What Android version is that?
Re: FileRequest() Not Working on Android
Posted: Tue Feb 03, 2026 11:50 am
by PEB
Yes, that's exactly what happens.
I'm using Android version 16 on a "OnePlus 13".
Re: FileRequest() Not Working on Android
Posted: Wed Feb 04, 2026 5:14 pm
by airsoftsoftwair
Hmm... does
PathRequest() show the same behaviour or does that work?
Re: FileRequest() Not Working on Android
Posted: Thu Feb 05, 2026 12:18 am
by PEB
Yes,
PathRequest() works fine.
And that also has allowed
FileRequest() to work properly now too.
So this is what happened:
Using
PathRequest(), I selected the desired folder, which caused a permission requester to appear. Once permission was granted, the path was returned to Hollywood as expected.
Previously, when I was testing
FileRequest(), there was no permission sought or granted. So apparently that was the problem. But now that permission has been granted---using
PathRequest()---I can also use
FileRequest() without problems.
Thanks for pointing me to a fix for my problem. That might have been something that was spelled out in the documentation, but I hadn't seen it.