I am not able to create any file using "System.IO.File.Create" API at following location with my app targeted to Android 11 ( Target SDK API 30).
The API which I use in my application to get above path is "Android.OS.Environment.GetExternalStoragePublicDirectory (Android.OS.Environment.DirectoryDocuments).Path".
I have got to know that with Android 11 their is Scoped Storage compulsory to be used. But then I want to know how can we create files out of app specific folder (Internal shared storage\Android\data).
The Exception I am getting while creating file is below:
Could not create file "/storage/emulated/0/Documents/abc.txt". File already exists.
But I think the above exception thrown is not real one.
The Xamarin Forms version used : 18.104.22.1680.
Visual Studio Version: VS2019 16.9.0
Any help or guidance on this is appreciated. Thanks in Advance.