Android Guides | Samples

Android.Content.FileCreationMode Enumeration

Enumerates values returned by several types and taken as a parameter of several types.

Syntax

[System.Flags]
public enum FileCreationMode

Remarks

Members

Member NameDescription
AppendFile creation mode: for use with Context.OpenFileOutput(String,FileCreationMode), if the file already exists then write data to the end of the existing file instead of erasing it.
EnableWriteAheadLoggingDatabase open flag: when set, the database is opened with write-ahead logging enabled by default.
MultiProcess

This was the legacy (but undocumented) behavior in and before Gingerbread (Android 2.3) and this flag is implied when targetting such releases. For applications targetting SDK versions greater than Android 2.3, this flag must be explicitly set if desired.

PrivateFile creation mode: the default mode, where the created file can only be accessed by the calling application (or all applications sharing the same user ID).
WorldReadable
WorldWriteable

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Content.FileCreationMode are listed below.

See Also: Enum

Public Fields

AppendFileCreationMode. File creation mode: for use with Context.OpenFileOutput(String,FileCreationMode), if the file already exists then write data to the end of the existing file instead of erasing it.
EnableWriteAheadLoggingFileCreationMode. Database open flag: when set, the database is opened with write-ahead logging enabled by default.
MultiProcessFileCreationMode.

This was the legacy (but undocumented) behavior in and before Gingerbread (Android 2.3) and this flag is implied when targetting such releases. For applications targetting SDK versions greater than Android 2.3, this flag must be explicitly set if desired.

PrivateFileCreationMode. File creation mode: the default mode, where the created file can only be accessed by the calling application (or all applications sharing the same user ID).
WorldReadableFileCreationMode.
WorldWriteableFileCreationMode.