FileRequest() Not Working on Android

Discuss any general programming issues here
Post Reply
PEB
Posts: 587
Joined: Sun Feb 21, 2010 1:28 am

FileRequest() Not Working on Android

Post 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!
User avatar
airsoftsoftwair
Posts: 5886
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: FileRequest() Not Working on Android

Post 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.
PEB
Posts: 587
Joined: Sun Feb 21, 2010 1:28 am

Re: FileRequest() Not Working on Android

Post by PEB »

This is my code:

Code: Select all

f$=FileRequest("Select File")
NPrint(f$)
The error is reported "In function: FileRequest"
User avatar
airsoftsoftwair
Posts: 5886
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: FileRequest() Not Working on Android

Post 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?
PEB
Posts: 587
Joined: Sun Feb 21, 2010 1:28 am

Re: FileRequest() Not Working on Android

Post by PEB »

Yes, that's exactly what happens.
I'm using Android version 16 on a "OnePlus 13".
Post Reply