ContextWrapper.NoBackupFilesDir Property

Definition

Returns the absolute path to the directory on the filesystem similar to FilesDir.

public override Java.IO.File? NoBackupFilesDir { [Android.Runtime.Register("getNoBackupFilesDir", "()Ljava/io/File;", "GetGetNoBackupFilesDirHandler")] get; }
[<get: Android.Runtime.Register("getNoBackupFilesDir", "()Ljava/io/File;", "GetGetNoBackupFilesDirHandler")>]
member this.NoBackupFilesDir : Java.IO.File

Property Value

Returns the absolute path to the directory on the filesystem similar to getFilesDir() . The difference is that files placed under this directory will be excluded from automatic backup to remote storage. See BackupAgent for a full discussion of the automatic backup mechanism in Android. The returned path may change over time if the calling app is moved to an adopted storage device, so only relative paths should be persisted. No additional permissions are required for the calling app to read or write files under the returned path. Returns File The path of the directory holding application files that will not be automatically backed up to remote storage.

Attributes

Remarks

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.

Java documentation for android.content.ContextWrapper.getNoBackupFilesDir().

Applies to