Android.Content.ContextWrapper.ExternalCacheDir Property
Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Android.OS.Environment.ExternalStorageDirectory where the application can place cache files it owns.

Syntax

[get: Android.Runtime.Register("getExternalCacheDir", "()Ljava/io/File;", "GetGetExternalCacheDirHandler")]
public override Java.IO.File ExternalCacheDir { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Android.OS.Environment.ExternalStorageDirectory where the application can place cache files it owns. These files are internal to the application, and not typically visible to the user as media.

This is like Context.CacheDir in that these files will be deleted when the application is uninstalled, however there are some important differences:

Starting in NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#KITKAT, no permissions are required to read or write to the returned path; it's always accessible to the calling app. This only applies to paths generated for package name of the calling application. To access paths belonging to other packages, NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE and/or NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE are required.

On devices with multiple users (as described by Android.OS.UserManager), each user has their own isolated external storage. Applications only have access to the external storage for the user they're running as.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8