Environment.IsExternalStorageEmulated Property

Definition

Returns whether the primary shared/external storage media is emulated.

public static bool IsExternalStorageEmulated { [Android.Runtime.Register("isExternalStorageEmulated", "()Z", "")] get; }
[<get: Android.Runtime.Register("isExternalStorageEmulated", "()Z", "")>]
static member IsExternalStorageEmulated : bool

Property Value

Attributes

Remarks

Returns whether the primary shared/external storage media is emulated.

The contents of emulated storage devices are backed by a private user data partition, which means there is little benefit to apps storing data here instead of the private directories returned by Context#getFilesDir(), etc.

This returns true when emulated storage is backed by either internal storage or an adopted storage device.

Java documentation for android.os.Environment.isExternalStorageEmulated().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Android.App.Admin.DevicePolicyManager.SetStorageEncryption(Android.Content.ComponentName%2c+System.Boolean)>