Issue
I encounter a problem, since i want to recompile my App for the new Android 11 and above. And i think the core problem i have is with this scoped storage. Is there any List of allowed Filepaths where i can still read/write as i want or do i really have to integrate this MediaAccess API?
My Filepath to go would be as follows:
public static string XmlFilename = "Arbeitszeiten.xml";
public static string filepath = "/storage/emulated/0/Documents/Arbeitszeiten";
Until Android 10 it worked fine, since i want to save/edit/read a .xml file on the Device itself i need a "allowed" filepath. I thought that Scoped Storage blocks the Access to the /Android/data and ../obb folder. And that the Downloads, Pictures, Documents are Folders still accessible.
Solution
What helped me was to adapt my minimum Version to Android 10 API 29 and the Target Version to Android 11 API 30 in the Manifest. Since i didn't found the android:requestLegacyExternalStorage Permission i think it's only a temporary solution, but for now it works.
Answered By - Chessmate
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.