Skip to content

Instantly share code, notes, and snippets.

@granoeste
Created March 31, 2011 05:05
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 granoeste/895848 to your computer and use it in GitHub Desktop.
Save granoeste/895848 to your computer and use it in GitHub Desktop.
[Android]Getting the path of each directory
File dir = context.getFilesDir(); // /data/data/package/files
File dir = context.getCacheDir(); // /data/data/package/cache
File dir = Environment.getDataDirectory(); // /data
File dir = Environment.getDownloadCacheDirectory(); // /cache
File dir = Environment.getExternalStorageDirectory(); // /sdcard
File dir = Environment.getRootDirectory(); // /system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment