The Dev Guide recommends using Context.getExternalCacheDir(), which would be equivalent to [face=courier]/Android/data/com.ghisler.android.TotalCommander/cache[/face]. Since Context.getExternalCacheDir() was introduced in API Level 8, you may want to build the path manually:Applications should not directly use this top-level directory, in order to avoid polluting the user's root namespace.
Code: Select all
File externalCacheDir = new File(new File(new File(new File(Environment.getExternalStorageDirectory(), "Android"), "data"), context.getPackageName()), "cache");