Android.Content.Context.GetDir Method
Retrieve, creating if needed, a new directory in which the application can place its own custom data files.

Syntax

[Android.Runtime.Register("getDir", "(Ljava/lang/String;I)Ljava/io/File;", "GetGetDir_Ljava_lang_String_IHandler")]
public abstract Java.IO.File GetDir (string name, [Android.Runtime.GeneratedEnum] FileCreationMode mode)

See Also

Context.OpenFileOutput(string, Android.Content.FileCreationMode)

Parameters

name
Name of the directory to retrieve. This is a directory that is created as part of your application data.
mode
Operating mode. Use 0 or Context.MODE_PRIVATE for the default operation, Context.MODE_WORLD_READABLE and Context.MODE_WORLD_WRITEABLE to control permissions.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve, creating if needed, a new directory in which the application can place its own custom data files. You can use the returned File object to create and access files in this directory. Note that files created through a File object will only be accessible by your own application; you can only set the mode of the entire directory, not of individual files.

[Android Documentation]

Requirements

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