org.arakhne.afc.ui.android.filechooser
public class FileChooserActivity extends android.support.v4.app.FragmentActivity implements android.support.v4.app.FragmentManager.OnBackStackChangedListener
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
ACTIVITY_OPTIONS
Name of the extra data that is containing the options of the file chooser.
|
static String |
SAVED_FILE_FILTER
Name of the attribute that permits to save the file filter in the activity.
|
static String |
SAVED_ICON_SELECTOR
Name of the attribute that permits to save the icon selector in the activity.
|
static String |
SAVED_IS_OPEN
Name of the attribute that permits to indicates if the chooser is for opening a file.
|
static String |
SAVED_PATH_NAME
Name of the attribute that permits to save the path in the activity.
|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OKACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_ROUTER_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE| Constructor and Description |
|---|
FileChooserActivity() |
| Modifier and Type | Method and Description |
|---|---|
FileFilter |
getFileFilter()
Replies the file filter to use in the chooser.
|
FileChooserIconSelector |
getIconSelector()
Replies the selector of icon.
|
void |
onBackStackChanged()
Invoked when the SD card state has changed.
|
protected void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(android.view.Menu menu) |
boolean |
onMenuItemSelected(int featureId,
android.view.MenuItem item) |
protected void |
onPause() |
boolean |
onPrepareOptionsMenu(android.view.Menu menu) |
protected void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
protected void |
onResume() |
protected void |
onSaveInstanceState(android.os.Bundle outState) |
protected void |
onSelectedFile(File file)
Called when the user selects a File.
|
protected void |
onValidatedFile(File file)
Invoked when the activity is finished with a selected file.
|
void |
setFileFilter(FileFilter fileFilter)
Set the file filter to use in the chooser.
|
void |
setIconSelector(FileChooserIconSelector iconSelector)
Set the selector of icon
|
protected void |
updateSaveAction()
Update the state of the save action.
|
protected void |
updateUpDirectoryAction()
Update the state of the up-directory action.
|
dump, getLastCustomNonConfigurationInstance, getSupportFragmentManager, getSupportLoaderManager, onActivityResult, onAttachFragment, onBackPressed, onConfigurationChanged, onCreatePanelMenu, onCreateView, onDestroy, onKeyDown, onLowMemory, onPanelClosed, onPostResume, onPreparePanel, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStart, onStop, startActivityForResult, startActivityFromFragment, supportInvalidateOptionsMenuaddContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, finish, finishActivity, finishActivityFromChild, finishAffinity, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMenuInflater, getParent, getParentActivityIntent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isChangingConfigurations, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreatePanelView, onCreateThumbnail, onCreateView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuOpened, onNavigateUp, onNavigateUpFromChild, onNewIntent, onOptionsItemSelected, onOptionsMenuClosed, onPostCreate, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onRestart, onSearchRequested, onTitleChanged, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, recreate, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setIntent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, shouldUpRecreateTask, showDialog, showDialog, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenubindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiverstatic final String ACTIVITY_OPTIONS
public static final String SAVED_PATH_NAME
public static final String SAVED_ICON_SELECTOR
public static final String SAVED_FILE_FILTER
public static final String SAVED_IS_OPEN
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate in class android.support.v4.app.FragmentActivitypublic boolean onCreateOptionsMenu(android.view.Menu menu)
onCreateOptionsMenu in class android.app.Activitypublic boolean onMenuItemSelected(int featureId,
android.view.MenuItem item)
onMenuItemSelected in interface android.view.Window.CallbackonMenuItemSelected in class android.support.v4.app.FragmentActivitypublic boolean onPrepareOptionsMenu(android.view.Menu menu)
onPrepareOptionsMenu in class android.app.Activityprotected void updateUpDirectoryAction()
protected void updateSaveAction()
public void setFileFilter(FileFilter fileFilter)
fileFilter - public FileFilter getFileFilter()
public void setIconSelector(FileChooserIconSelector iconSelector)
iconSelector - public FileChooserIconSelector getIconSelector()
public void onBackStackChanged()
onBackStackChanged in interface android.support.v4.app.FragmentManager.OnBackStackChangedListenerprotected void onPause()
onPause in class android.support.v4.app.FragmentActivityprotected void onResume()
onResume in class android.support.v4.app.FragmentActivityprotected void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState in class android.support.v4.app.FragmentActivityprotected void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState in class android.app.Activityprotected void onValidatedFile(File file)
file - is the selected file.protected void onSelectedFile(File file)
file - is the selected file.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