|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
org.android.activityminer.app.util.FileBrowserActivity
public class FileBrowserActivity
A simple file browser activity (modified copy of the sdcf file browser adapter).
Field Summary | |
---|---|
private Button |
btnChoose
The choose selection button. |
private ImageButton |
btnDirUp
The navigate to parent directory button. |
private File |
currentDir
The current directory. |
private boolean |
doSelectDirs
The flag for directory selection. |
private FileListAdapter |
fileAdapter
The list view adapter. |
private ListView |
filesView
The files list view. |
private FileMatcherFilter |
filter
The file matcher filter. |
private TextView |
pathView
The path view. |
static String |
PATTERN_ANY_FILE
Any file pattern constant |
private File |
selectedFile
The selected file. |
Fields inherited from class android.app.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_OK |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
FileBrowserActivity()
Constructor |
Method Summary | |
---|---|
protected void |
onChooseSelection()
Handler for choose selected file |
void |
onCreate(Bundle savedInstanceState)
|
protected void |
onDirUp()
Handler for directory up navigation |
void |
onItemClick(AdapterView<?> parent,
View view,
int position,
long id)
|
void |
setCurrentDir(File dir)
Setter for the current directory |
private void |
setSelection(File file)
Setter for the selected file. |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PATTERN_ANY_FILE
private TextView pathView
private FileListAdapter fileAdapter
private ImageButton btnDirUp
private Button btnChoose
private File currentDir
private File selectedFile
private ListView filesView
private FileMatcherFilter filter
private boolean doSelectDirs
Constructor Detail |
---|
public FileBrowserActivity()
Method Detail |
---|
public void onCreate(Bundle savedInstanceState)
onCreate
in class Activity
public void setCurrentDir(File dir)
dir
- the directory to setprivate void setSelection(File file)
file
- the selected filepublic void onItemClick(AdapterView<?> parent, View view, int position, long id)
onItemClick
in interface AdapterView.OnItemClickListener
protected void onDirUp()
protected void onChooseSelection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |