getCacheDirsPath

public static String getCacheDirsPath(Context context, String dir)

Retrieves the cache storage path, such as /sdcard/Android/data/<package name>/cache/<dir>

Return

The full path of the directory, returns an empty string if external storage is not mounted or an error occurs

Parameters

context

The passed-in Context

dir

Custom directory (multi-level directory)