Skip to content

Instantly share code, notes, and snippets.

@jamesmundy
Created November 26, 2014 16:49
Show Gist options
  • Save jamesmundy/5af501ab4875da03ee89 to your computer and use it in GitHub Desktop.
Save jamesmundy/5af501ab4875da03ee89 to your computer and use it in GitHub Desktop.
GetPath method used to save in different places depending on build type.
public static string GetPath()
{
if (Debugger.IsAttached) return Android.OS.Environment.ExternalStorageDirectory.Path;
else return Application.Context.FilesDir.Path;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment