Context.GetExternalFilesDir(String) Context.GetExternalFilesDir(String) Method


Returns the absolute path to the directory on the primary external filesystem (that is somewhere on ExternalStorageDirectory) where the application can place persistent files it owns.

[Android.Runtime.Register("getExternalFilesDir", "(Ljava/lang/String;)Ljava/io/File;", "GetGetExternalFilesDir_Ljava_lang_String_Handler", ApiSince=8)]
public abstract Java.IO.File GetExternalFilesDir (string type);
abstract member GetExternalFilesDir : string -> Java.IO.File


String String

The type of files directory to return. May be null for the root of the files directory or one of the following Environment constants for a subdirectory: DirectoryMusic, DirectoryPodcasts, DirectoryRingtones, DirectoryAlarms, DirectoryNotifications, DirectoryPictures, or DirectoryMovies.



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