Acces to files with Xamarin.Android (solved)

André Lamothe 0 Reputation points
2023-04-16T19:51:56.3866667+00:00

Hi I develop personal applications Android 12 with Microsoft Visual Studio Community 2022 Version 17.5.4 and Xamarin. Some news problems with this version.

  • The only files I can now access are in the directory Android > data > appName > file. It's a problem of security level ?
  • When I deploy the project, files in Android > data > appName > file are erased. How to avoid this happening ? Sincerely Yours
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,302 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. André Lamothe 0 Reputation points
    2023-05-01T13:06:18.76+00:00

    I figured how to access all the files in the root directories of Phone or SD card.

    1. Set MANAGE__EXTERNAL__STORAGE permission in android manifest
    2. Activate manage all files in android settings of your phone > applications > permissions (else the access is limited to multimedia files)

    Screenshot_20230430_214202_Permission controller

    0 comments No comments