C
C#15mo ago
r2d25551

❔ .NET MAUI Android Filesystem

I am getting a Read-only access violation when I try to create a directory in the path returned from MediaStore.Files.GetContentUri:
Android.Net.Uri? uri = MediaStore.Files.GetContentUri("external");
"content://media/external/file".AbsolutePath;
"/external/file"
Android.Net.Uri? uri = MediaStore.Files.GetContentUri("external");
"content://media/external/file".AbsolutePath;
"/external/file"
Android.Net.Uri? uri = MediaStore.Images.Media.ExternalContentUri;
"content://media/external/images/media"
Android.Net.Uri? uri = MediaStore.Images.Media.ExternalContentUri;
"content://media/external/images/media"
Android.Net.Uri? uri = MediaStore.Audio.Media.ExternalContentUri;
"content://media/external/audio/media"
Android.Net.Uri? uri = MediaStore.Audio.Media.ExternalContentUri;
"content://media/external/audio/media"
Android.Net.Uri? uri = MediaStore.Video.Media.ExternalContentUri;
"content://media/external/video/media"
Android.Net.Uri? uri = MediaStore.Video.Media.ExternalContentUri;
"content://media/external/video/media"
Are these return values correct? Am I using the AbsolutePath correctly? Any suggestions on how to resolve the Read-only access violation is appreciated.
1 Reply
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server