Skip to content

Instantly share code, notes, and snippets.

@cullen-tsering
Last active May 6, 2016 14:47
Show Gist options
  • Save cullen-tsering/9ae0933a774b75ddc2e8 to your computer and use it in GitHub Desktop.
Save cullen-tsering/9ae0933a774b75ddc2e8 to your computer and use it in GitHub Desktop.
Spit Out Android Directories
foreach (Environment.SpecialFolder s in (Environment.SpecialFolder[])Enum.GetValues(typeof(System.Environment.SpecialFolder)))
{
Android.Util.Log.Info("App", string.Format("Environment.SpecialFolder.{0}::{1}",Enum.GetName(typeof(Environment.SpecialFolder),s),Environment.GetFolderPath(s)));
}
/* output starts */
/*
Environment.SpecialFolder.Desktop::/data/data/{package name}/files/Desktop
Environment.SpecialFolder.Programs::
Environment.SpecialFolder.MyDocuments::/data/data/{package name}/files
/* the folder below should be Personal but MyDocuments and Personal share the same enum value of 5 so it spat out MyDocuments */
Environment.SpecialFolder.MyDocuments::/data/data/{package name}/files
Environment.SpecialFolder.Favorites::
Environment.SpecialFolder.Startup::
Environment.SpecialFolder.Recent::
Environment.SpecialFolder.SendTo::
Environment.SpecialFolder.StartMenu::
Environment.SpecialFolder.MyMusic::/data/data/{package name}/files/Music
Environment.SpecialFolder.MyVideos::/data/data/{package name}/files/Videos
Environment.SpecialFolder.DesktopDirectory::/data/data/{package name}/files/Desktop
Environment.SpecialFolder.MyComputer::
Environment.SpecialFolder.NetworkShortcuts::
Environment.SpecialFolder.Fonts::/data/data/{package name}/files/.fonts
Environment.SpecialFolder.Templates::/data/data/{package name}/files/Templates
Environment.SpecialFolder.CommonStartMenu::
Environment.SpecialFolder.CommonPrograms::
Environment.SpecialFolder.CommonStartup::
Environment.SpecialFolder.CommonDesktopDirectory::
Environment.SpecialFolder.ApplicationData::/data/data/{package name}/files/.config
Environment.SpecialFolder.PrinterShortcuts::
Environment.SpecialFolder.LocalApplicationData::/data/data/{package name}/files/.local/share
Environment.SpecialFolder.InternetCache::
Environment.SpecialFolder.Cookies::
Environment.SpecialFolder.History::
Environment.SpecialFolder.CommonApplicationData::/usr/share
Environment.SpecialFolder.Windows::
Environment.SpecialFolder.System::
Environment.SpecialFolder.ProgramFiles::
Environment.SpecialFolder.MyPictures::/data/data/{package name}/files/Pictures
Environment.SpecialFolder.UserProfile::/data/data/{package name}/files
Environment.SpecialFolder.SystemX86::
Environment.SpecialFolder.ProgramFilesX86::
Environment.SpecialFolder.CommonProgramFiles::
Environment.SpecialFolder.CommonProgramFilesX86::
Environment.SpecialFolder.CommonTemplates::/usr/share/templates
Environment.SpecialFolder.CommonDocuments::
Environment.SpecialFolder.CommonAdminTools::
Environment.SpecialFolder.AdminTools::
Environment.SpecialFolder.CommonMusic::
Environment.SpecialFolder.CommonPictures::
Environment.SpecialFolder.CommonVideos::
Environment.SpecialFolder.Resources::
Environment.SpecialFolder.LocalizedResources::
Environment.SpecialFolder.CommonOemLinks::
Environment.SpecialFolder.CDBurning::
*/
/* output ends */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment