public class FileListerDialog
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileListerDialog.FILE_FILTER
File Filter for the FileListerDialog
|
| Modifier and Type | Method and Description |
|---|---|
static FileListerDialog |
createFileListerDialog(android.content.Context context)
Creates a default instance of FileListerDialog
|
static FileListerDialog |
createFileListerDialog(android.content.Context context,
int themeId)
Creates an instance of FileListerDialog with the specified Theme
|
void |
setDefaultDir(java.io.File file)
Set the initial directory to show the list of files in that directory
|
void |
setDefaultDir(java.lang.String file)
Set the initial directory to show the list of files in that directory
|
void |
setFileFilter(FileListerDialog.FILE_FILTER fileFilter)
Set the file filter for listing the files
|
void |
setOnFileSelectedListener(OnFileSelectedListener onFileSelectedListener)
Listener to know which file/directory is selected
|
void |
show()
Display the FileListerDialog
|
public static FileListerDialog createFileListerDialog(android.content.Context context)
context - Context of the Apppublic static FileListerDialog createFileListerDialog(android.content.Context context, int themeId)
context - Context of the AppthemeId - Theme Id for the dialogpublic void show()
public void setOnFileSelectedListener(OnFileSelectedListener onFileSelectedListener)
onFileSelectedListener - Instance of the Listenerpublic void setDefaultDir(java.io.File file)
file - File pointing to the directorypublic void setDefaultDir(java.lang.String file)
file - String denoting to the directorypublic void setFileFilter(FileListerDialog.FILE_FILTER fileFilter)
fileFilter - One of the FILE_FILTER values