Skip to content

Instantly share code, notes, and snippets.

@onlyangel
Created November 16, 2018 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onlyangel/a56bff957f76635d80405ff2ad03fcea to your computer and use it in GitHub Desktop.
Save onlyangel/a56bff957f76635d80405ff2ad03fcea to your computer and use it in GitHub Desktop.
File folder = new File(Environment.getExternalStorageDirectory() +
File.separator + "TollCulator");
boolean success = true;
if (!folder.exists()) {
success = folder.mkdirs();
}
if (success) {
// Do something on success
} else {
// Do something else on failure
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment