|
||||||||||
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
android.app.ExpandableListActivity
com.github.droidfu.activities.BetterExpandableListActivity
public class BetterExpandableListActivity
Field Summary |
---|
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 class android.content.Context |
---|
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_NOT_FOREGROUND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, UI_MODE_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE |
Constructor Summary | |
---|---|
BetterExpandableListActivity()
|
Method Summary | ||
---|---|---|
android.content.Intent |
getCurrentIntent()
Retrieves the current intent that was used to create or resume this activity. |
|
int |
getWindowFeatures()
|
|
boolean |
isApplicationBroughtToBackground()
Android doesn't distinguish between your Activity being paused by another Activity of your own application, or by an Activity of an entirely different application. |
|
boolean |
isLandscapeMode()
|
|
boolean |
isLaunching()
|
|
boolean |
isPortraitMode()
|
|
boolean |
isRestoring()
|
|
boolean |
isResuming()
|
|
android.app.AlertDialog |
newAlertDialog(int titleResourceId,
int messageResourceId)
|
|
android.app.AlertDialog |
newErrorHandlerDialog(Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. |
|
android.app.AlertDialog |
newErrorHandlerDialog(int titleResourceId,
Exception error)
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. |
|
android.app.AlertDialog |
newInfoDialog(int titleResourceId,
int messageResourceId)
|
|
|
newListDialog(String title,
List<T> elements,
DialogClickListener<T> listener,
boolean closeOnSelect)
Creates a new list style dialog from a list of objects. |
|
android.app.AlertDialog |
newYesNoDialog(int titleResourceId,
int messageResourceId,
android.content.DialogInterface.OnClickListener listener)
|
|
protected void |
onCreate(android.os.Bundle savedInstanceState)
|
|
protected android.app.Dialog |
onCreateDialog(int id)
|
|
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event)
|
|
protected void |
onNewIntent(android.content.Intent intent)
|
|
protected void |
onPause()
|
|
protected void |
onRestoreInstanceState(android.os.Bundle savedInstanceState)
|
|
protected void |
onSaveInstanceState(android.os.Bundle outState)
|
|
void |
setProgressDialogMsgId(int progressDialogMsgId)
|
|
void |
setProgressDialogTitleId(int progressDialogTitleId)
|
Methods inherited from class android.app.ExpandableListActivity |
---|
getExpandableListAdapter, getExpandableListView, getSelectedId, getSelectedPosition, onChildClick, onContentChanged, onCreateContextMenu, onGroupCollapse, onGroupExpand, setListAdapter, setSelectedChild, setSelectedGroup |
Methods inherited from class android.app.Activity |
---|
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getInstanceCount, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, getWindow, getWindowManager, hasWindowFocus, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, onActivityResult, onApplyThemeResource, onAttachedToWindow, onBackPressed, onChildTitleChanged, onConfigurationChanged, onContextItemSelected, onContextMenuClosed, onCreateDescription, onCreateDialog, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onDestroy, onDetachedFromWindow, onKeyLongPress, onKeyMultiple, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPostCreate, onPostResume, onPrepareDialog, onPrepareDialog, onPrepareOptionsMenu, onPreparePanel, onRestart, onResume, onRetainNonConfigurationInstance, onSearchRequested, onStart, onStop, onTitleChanged, onTouchEvent, onTrackballEvent, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, overridePendingTransition, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setIntent, setPersistent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, showDialog, showDialog, startActivity, startActivityForResult, startActivityFromChild, startActivityIfNeeded, startIntentSender, startIntentSenderForResult, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu |
Methods inherited from class android.view.ContextThemeWrapper |
---|
attachBaseContext, getTheme, setTheme |
Methods inherited from class android.content.ContextWrapper |
---|
bindService, 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, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BetterExpandableListActivity()
Method Detail |
---|
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class android.app.Activity
protected void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState
in class android.app.Activity
protected void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState
in class android.app.ExpandableListActivity
protected void onPause()
onPause
in class android.app.Activity
protected void onNewIntent(android.content.Intent intent)
onNewIntent
in class android.app.Activity
protected android.app.Dialog onCreateDialog(int id)
onCreateDialog
in class android.app.Activity
public void setProgressDialogTitleId(int progressDialogTitleId)
setProgressDialogTitleId
in interface BetterActivity
public void setProgressDialogMsgId(int progressDialogMsgId)
setProgressDialogMsgId
in interface BetterActivity
public int getWindowFeatures()
getWindowFeatures
in interface BetterActivity
public boolean isRestoring()
isRestoring
in interface BetterActivity
public boolean isResuming()
isResuming
in interface BetterActivity
public boolean isLaunching()
isLaunching
in interface BetterActivity
public boolean isApplicationBroughtToBackground()
BetterActivity
isApplicationBroughtToBackground
in interface BetterActivity
public android.content.Intent getCurrentIntent()
BetterActivity
getCurrentIntent
in interface BetterActivity
Intent
public boolean isLandscapeMode()
isLandscapeMode
in interface BetterActivity
public boolean isPortraitMode()
isPortraitMode
in interface BetterActivity
public android.app.AlertDialog newYesNoDialog(int titleResourceId, int messageResourceId, android.content.DialogInterface.OnClickListener listener)
newYesNoDialog
in interface BetterActivity
public android.app.AlertDialog newInfoDialog(int titleResourceId, int messageResourceId)
newInfoDialog
in interface BetterActivity
public android.app.AlertDialog newAlertDialog(int titleResourceId, int messageResourceId)
newAlertDialog
in interface BetterActivity
public android.app.AlertDialog newErrorHandlerDialog(int titleResourceId, Exception error)
BetterActivity
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. Clicking the report button will cause the app to collect diagnostic information, compile it to a single text body, and launch the email application with the error report being preset as the email's body.
For this to work, you must define the following string resources in your application:
newErrorHandlerDialog
in interface BetterActivity
titleResourceId
- the string resource that should be used as the dialog titleerror
- the exception that should be displayed and/or reported
public android.app.AlertDialog newErrorHandlerDialog(Exception error)
BetterActivity
Creates a new error dialog, with the option to either dismiss or -- if an email application is installed -- report the given error. Clicking the report button will cause the app to collect diagnostic information, compile it to a single text body, and launch the email application with the error report being preset as the email's body.
For this to work, you must define the following string resources in your application:
newErrorHandlerDialog
in interface BetterActivity
error
- the exception that should be displayed and/or reported
public <T> android.app.Dialog newListDialog(String title, List<T> elements, DialogClickListener<T> listener, boolean closeOnSelect)
BetterActivity
newListDialog
in interface BetterActivity
T
- the type of the list itemselements
- the list itemslistener
- the listener used for processing list item clickscloseOnSelect
- if true, the dialog will close when an item has been clicked
public boolean onKeyDown(int keyCode, android.view.KeyEvent event)
onKeyDown
in interface android.view.KeyEvent.Callback
onKeyDown
in class android.app.Activity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |