Jump to content
Felix.

Cannot write to GetLibraryPath (Android)

Recommended Posts

Greetings to all,

why I'm not able to write to GetLibraryPath folder? (Android 11, Delphi 10.4.1)

I keep getting the Permission denied error.

GetLibraryPath isn't the external storage, is it?

Share this post


Link to post
  1. This call was successful in previous Delphi versions?
  2. Have you tried any other device?

docwiki.embarcadero says:

Quote

On Android, it points to the device-specific location of the sandbox for the application;

So it might be related to device or application permissions.

Share this post


Link to post
On 12/22/2021 at 7:59 PM, Felix. said:

why I'm not able to write to GetLibraryPath folder? (Android 11, Delphi 10.4.1)

On Android, it's not meant to be written to by the app. What is the reason why you're using that folder to write to?

 

 

 

Share this post


Link to post
On 12/24/2021 at 3:36 AM, Dave Nottage said:

On Android, it's not meant to be written to by the app. What is the reason why you're using that folder to write to?

 

 

 

I've tried to create a text file in Library folder to pass it to stockfish engine.

Share this post


Link to post
1 hour ago, Felix. said:

I've tried to create a text file in Library folder to pass it to stockfish engine.

Save the file to a directory where you have write permission 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×