Monodroid environment variables

Android has a collection of environment paths available in Android.OS.Environment. However, bearing in mind the possibilities of the cross platform, I want to save the photos in a folder with pictures and, as it is believed, use System.Environment.GetFolderPath instead. However, my question is that all this points to the Android environment. Can I get a useful folder with photos from the following?

string path = Environment.GetFolderPath (Environment.SpecialFolder.MyPictures); 
+6
source share
2 answers

After navigating through some code, I summed up the location data of Xamarin Android for each of the various System.Environment variables below. I don't have an iOS project, but if anyone could post iOS equivalents, I would be grateful.

 ApplicationData "/data/data/ProjectName.ProjectName/files/.config" CommonApplicationData "/usr/share" CommonProgramFiles "" Cookies "" Desktop "/data/data/ProjectName.ProjectName/files/Desktop" DesktopDirectory "/data/data/ProjectName.ProjectName/files/Desktop" Favorites "" History "" InternetCache "" LocalApplicationData "/data/data/ProjectName.ProjectName/files/.local/share" MyComputer "" MyDocuments "/data/data/ProjectName.ProjectName/files" MyMusic "/data/data/ProjectName.ProjectName/files/Music" MyPictures "/data/data/ProjectName.ProjectName/files/Pictures" MyVideos "/data/data/ProjectName.ProjectName/files/Videos" Personal "/data/data/ProjectName.ProjectName/files" ProgramFiles "" Programs "" Recent "" SendTo "" StartMenu "" Startup "" System "" Templates "/data/data/ProjectName.ProjectName/files/Templates" 
+11
source

Source: https://habr.com/ru/post/946502/


All Articles