question

HarikrishnanVb-6191 avatar image
0 Votes"
HarikrishnanVb-6191 asked ·

How to create folder in Android 10 and above programmatically? its giving access denied exception

How to create folder in Android 10 and above programmatically? its giving access denied exception

dotnet-xamarinformsdotnet-android
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

alessandrocaliaro avatar image
0 Votes"
alessandrocaliaro answered ·

You have to add

requestLegacyExternalStorage

In your manifest

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@alessandrocaliaro I am trying to create file in Android 11. already have set requestLegacyExternalStorage to true. and given read write storage access. but still I am getting Access Denied error. Well, it works but only sometimes. But I really don't know the condition for this 'sometimes'. I also have tried to write dependency service for android. but still it gives error.

Any leads ?

0 Votes 0 ·
0 Votes 0 ·