I need to create a text file on external STORAGE of an android mobile phone:
i use this code:
string fileName = Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "Test.txt");
And get thi error:
Android does not contain a definition for 'OS'
TAHNKS to every one
Riccardo DariaPosted Feb 5, 2024, 8:00 AM
OK dear Tuhin Paul,
Android Version: 9;
Language used: C# in XAMARIN
i use this code:
Tuhin PaulPosted Feb 3, 2024, 9:12 AM
I'll need more information to provide the better instructions:
1. Android Version and Development Environment:
2. Permission Handling:
AndroidManifest.xmlfile? This is mandatory for Android 10 and laterRiccardo DariaPosted Feb 2, 2024, 4:10 PM
I don't understand,
please, I need write on external STORAGE on android mobile phone using XAMARIN
THANKS
Delpin Susai RajPosted Feb 2, 2024, 1:09 PM
Your trying to get path from Android.OS.Environment Change to iOS path