org.arakhne.afc.ui.android.filechooser
public class FileChooser extends Object
| Constructor and Description |
|---|
FileChooser() |
| Modifier and Type | Method and Description |
|---|---|
static android.os.Bundle |
createOptions(File directory,
Class<? extends FileFilter> fileFilter,
Class<? extends FileChooserIconSelector> iconSelector)
Create options that may be passed to a chooser.
|
static void |
showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle)
Show the file chooser for opening a file.
|
static void |
showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
android.os.Bundle options)
Show the file chooser for opening a file.
|
static void |
showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
File directory,
Class<? extends FileFilter> fileFilter,
Class<? extends FileChooserIconSelector> iconSelector)
Show the file chooser for opening a file.
|
static void |
showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
String mimeType,
android.os.Bundle options)
Show the file chooser for opening a file.
|
static void |
showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle)
Show the file chooser for saving a file.
|
static void |
showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
android.os.Bundle options)
Show the file chooser for saving a file.
|
static void |
showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
File file,
Class<? extends FileFilter> fileFilter,
Class<? extends FileChooserIconSelector> iconSelector)
Show the file chooser for saving a file.
|
static void |
showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
String mimeType,
android.os.Bundle options)
Show the file chooser for saving a file.
|
public static void showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
String mimeType,
android.os.Bundle options)
The keys supported by the file chooser are:
path: the directory path to open at start-up.fileFilter: the classname of the file filter to use.context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.mimeType - is the MIME type of the files to select.options - are the options to pass to the activity.public static void showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
android.os.Bundle options)
The keys supported by the file chooser are:
path: the directory path to open at start-up.fileFilter: the classname of the file filter to use.Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.options - are the options to pass to the activity.public static void showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
File directory,
Class<? extends FileFilter> fileFilter,
Class<? extends FileChooserIconSelector> iconSelector)
Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.directory - is the directory to explore.fileFilter - is the file filter to use.iconSelector - is the selector of icon to use; or null for none.public static android.os.Bundle createOptions(File directory, Class<? extends FileFilter> fileFilter, Class<? extends FileChooserIconSelector> iconSelector)
directory - is the directory to explore.fileFilter - is the file filter to use.iconSelector - is the selector of icon to use; or null for none.public static void showOpenChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle)
Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.public static void showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
String mimeType,
android.os.Bundle options)
The keys supported by the file chooser are:
path: the file path to save at start-up.fileFilter: the classname of the file filter to use.context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.mimeType - is the mime type of the files to select.options - are the options to pass to the activity.public static void showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
android.os.Bundle options)
The keys supported by the file chooser are:
path: the file path to save at start-up.fileFilter: the classname of the file filter to use.Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.options - are the options to pass to the activity.public static void showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle,
File file,
Class<? extends FileFilter> fileFilter,
Class<? extends FileChooserIconSelector> iconSelector)
Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.file - is the filename to use for the saving file.fileFilter - is the file filter to use.iconSelector - is the selector of icon to use; or null for none.public static void showSaveChooser(android.app.Activity context,
int activityResultRequestCode,
int chooserTitle)
Mime type is "file/*".
context - is the execution context.activityResultRequestCode - is the code that may be used to retreive the result of the activity.chooserTitle - is the identifier for the chooser's title.Copyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor