Android Guides | Samples

Android.OS.Environment.InvokeIsExternalStorageEmulated Method

Returns whether the storage device that provides the given path is emulated.

Syntax

[Android.Runtime.Register("isExternalStorageEmulated", "(Ljava/io/File;)Z", "")]
public static Boolean InvokeIsExternalStorageEmulated (File path)

Parameters

path

Exceptions

TypeReason
IllegalArgumentExceptionif the path is not a valid storage device.

Remarks

Returns whether the storage device that provides the given path is emulated. If true, data stored on this device will be stored on a portion of the internal storage system.

[Android Documentation]

Requirements

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