public final class ActivityEP
extends java.lang.Object
The specifications are read and handled by AndroidEntryPointLocator.
AndroidEntryPointLocator| Modifier and Type | Field and Description |
|---|---|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchGenericMotionEvent
You can override this to intercept all generic motion events before they are dispatched to the
window.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchKeyEvent
You can override this to intercept all key events before they are dispatched to the window.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchKeyShortcutEvent |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchPopulateAccessibilityEvent
Accessibility events that are sent by the system when something notable happens in the user
interface.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchTouchEvent |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
dispatchTrackballEvent |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onActionModeFinished |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onActionModeStarted
Menus may depend on it..
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onActivityResult
Called when an Activity started by this one returns its result.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onApplyThemeResource
Called by setTheme(int) and getTheme() to apply a theme resource to the current Theme object.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onAttachedToWindow
Called when the main window associated with the activity has been attached to the window
manager.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onAttachFragment
Called when a Fragment is being attached to this activity, immediately after the call to its
Fragment.onAttach() method and before Fragment.onCreate().
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onBackPressed |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onChildTitleChanged |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onConfigurationChanged
Will be called if you have selected configurations you would like to handle with the
configChanges attribute in your manifest.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onContentChanged
This hook is called whenever the content view of the screen changes.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onContextItemSelected
TODO: How does this correlate to onMenuItemSelected.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onContextMenuClosed
This hook is called whenever the context menu is being closed.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreate
Called after App.onCreate - assumed to be before Service.onCreate.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateContextMenu
Called when a context menu for the view is about to be shown.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateDescription
This method is called before pausing
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateDialog
Callback for creating dialogs that are managed (saved and restored) for you by the activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateNavigateUpTaskStack
This method will be invoked by the default implementation of onNavigateUp()
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateOptionsMenu |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreatePanelMenu
TODO: GET MORE INFO ON THIS!.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreatePanelView
TODO: GET MORE INFO ON THIS!.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateThumbnail
This method is called before pausing
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onCreateView
used when inflating with the LayoutInflater returned by getSystemService(String).
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDestroy
Perform any final cleanup before an activity is destroyed.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onDetachedFromWindow
Called when the main window associated with the activity has been detached from the window
manager.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onGenericMotionEvent
Called when a generic motion event was not handled by any of the views inside of the activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onKeyDown
The default implementation takes care of KEYCODE_BACK by calling onBackPressed(), though the
behavior varies based on the application compatibility mode: for ECLAIR or later applications,
it will set up the dispatch to call onKeyUp(int, KeyEvent) where the action will be performed;
for earlier applications, it will perform the action immediately in on-down, as those versions
of the platform behaved.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onKeyLongPress |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onKeyMultiple |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onKeyShortcut |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onKeyUp
The default implementation handles KEYCODE_BACK to stop the activity and go back.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onLowMemory
While the exact point at which this will be called is not defined, generally it will happen
when all background process have been killed.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onMenuItemSelected
TODO More info.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onMenuOpened
TODO: More Info
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onNavigateUp
This method is called whenever the user chooses to navigate Up within your application's
activity hierarchy from the action bar.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onNavigateUpFromChild
This is called when a child activity of this one attempts to navigate up.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onNewIntent
Activity is re-launched while at the top of the activity stack instead of a new instance of the
activity being started.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onOptionsItemSelected |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onOptionsMenuClosed |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPanelClosed
TODO: GET MORE INFO ON THIS!.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPause
Activity is going to the background.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPostCreate
Called when activity start-up is complete.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPostResume
Called when activity resume is complete.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPrepareDialog
Provides an opportunity to prepare a managed dialog before it is being shown.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPrepareNavigateUpTaskStack
Prepare the synthetic task stack that will be generated during Up navigation from a different
task.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPrepareOptionsMenu |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onPreparePanel
TODO: GET MORE INFO ON THIS!.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onProvideAssistData
This function will be called after any global assist callbacks.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onRestart
Current activity is being re-displayed to the user.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onRestoreInstanceState
Restores the View-State (and may do other stuff).
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onResume
Activity starts interacting with the user.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onRetainNonConfigurationInstance
Called by the system, as part of destroying an activity due to a configuration change, when it
is known that a new instance will immediately be created for the new configuration.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onSaveInstanceState
Called to retrieve per-instance state from an activity before being killed.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onSearchRequested
This hook is called when the user signals the desire to start a search.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onSharedPreferenceChanged |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onStart
Called a view steps before the Activity gets visible.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onStop
Called when you are no longer visible to the user.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onTitleChanged |
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onTouchEvent
Called when a touch screen event was not handled by any of the views under it.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onTrackballEvent
Called when the trackball was moved and not handled by any of the views inside of the activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onTrimMemory
This will happen for example when it goes in the background and there is not enough memory to
keep as many background processes running as desired.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onUserInteraction
Called whenever a key, touch, or trackball event is dispatched to the activity.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onUserLeaveHint
Called as part of the activity lifecycle when an activity is about to go into the background as
the result of user choice.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onWindowAttributesChanged
This is called whenever the current window attributes change.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onWindowFocusChanged
Called when the current Window of the activity gains or loses focus.
|
static AndroidEntryPointLocator.AndroidPossibleEntryPoint |
onWindowStartingActionMode
Give the Activity a chance to control the UI for an action mode requested by the system.
|
| Constructor and Description |
|---|
ActivityEP() |
| Modifier and Type | Method and Description |
|---|---|
static void |
populate(java.util.List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints)
Add the EntryPoint specifications defined in this file to the given list.
|
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreate
This does not have to be called before Service.onCreate but the user assumably starts most apps with an activity we place it slightly before the Services
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onStart
Called after onCreate(Bundle) — or after onRestart() when the activity had been stopped, but is now again being displayed to the user. It will be followed by onResume().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onRestoreInstanceState
This method is called after onStart() when the activity is being re-initialized from a previously saved state, given here in savedInstanceState.
The default implementation of this method performs a restore of any view state that had previously been frozen by onSaveInstanceState(Bundle).
This method is called between onStart() and onPostCreate(Bundle).
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPostCreate
Called after onStart() and onRestoreInstanceState(Bundle)
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onResume
Called after onRestoreInstanceState(Bundle), onRestart(), or onPause() Use onWindowFocusChanged(boolean) to know for certain that your activity is visible to the user.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPostResume
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onNewIntent
An activity will always be paused before receiving a new intent, so you can count on onResume() being called after this method.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onStop
Next call will be either onRestart(), onDestroy(), or nothing, depending on later user activity.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onRestart
Called after onStop(), followed by onStart() and then onResume().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSaveInstanceState
It will get restored by onCreate(Bundle) or onRestoreInstanceState(Bundle).
If called, this method will occur before onStop(). There are no guarantees about whether it will occur before or after onPause().
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPause
Activity has not (yet) been killed. The counterpart to onResume().
In situations where the system needs more memory it may kill paused processes to reclaim resources. In general onSaveInstanceState(Bundle) is used to save per-instance state in the activity and this method is used to store global persistent data (in content providers, files, etc.)
After receiving this call you will usually receive a following call to onStop() however in some cases there will be a direct call back to onResume() without going through the stopped state.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDestroy
Someone called finish() on the Activity, or the system is temporarily destroying this Activity to save space. There are situations where the system will simply kill the activity's hosting process without calling this method.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActivityResult
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchPopulateAccessibilityEvent
TODO: Assert included everywhere
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateDialog
If you would like an opportunity to prepare your dialog before it is shown, override onPrepareDialog.
This method was deprecated in API level 13.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPrepareDialog
This method was deprecated in API level 13.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateView
TODO: More info This implementation handles tags to embed fragments inside of the activity.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onAttachFragment
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onAttachedToWindow
Note that this function is guaranteed to be called before View.onDraw including before or after onMeasure(int, int).
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDetachedFromWindow
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContentChanged
Due to a call to Window.setContentView or Window.addContentView
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onApplyThemeResource
TODO: Do we have to register an entrypoint for this?
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreatePanelView
This simply returns null so that all panel sub-windows will have the default menu behavior.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreatePanelMenu
This calls through to the new onCreateOptionsMenu(Menu) method for the FEATURE_OPTIONS_PANEL panel
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPreparePanel
This calls through to the new onPrepareOptionsMenu(Menu) method for the FEATURE_OPTIONS_PANEL
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPanelClosed
This calls through to onOptionsMenuClosed(Menu) method for the FEATURE_OPTIONS_PANEL. For context menus (FEATURE_CONTEXT_MENU), the onContextMenuClosed(Menu) will be called.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateContextMenu
Unlike onCreateOptionsMenu(Menu), this will be called every time the context menu is about to be shown.
Use onContextItemSelected(android.view.MenuItem) to know when an item has been selected.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextItemSelected
You can use this method for any items for which you would like to do processing without those other facilities.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextMenuClosed
either by the user canceling the menu with the back/menu button, or when an item is selected.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsItemSelected
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPrepareOptionsMenu
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onOptionsMenuClosed
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onMenuOpened
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onMenuItemSelected
This calls through to the new onOptionsItemSelected(MenuItem)
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTitleChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onChildTitleChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onUserInteraction
This callback and onUserLeaveHint() are intended to help activities manage status bar notifications intelligently; specifically, for helping activities determine the proper time to cancel a notification.
All calls to your activity's onUserLeaveHint() callback will be accompanied by calls to onUserInteraction().
Note that this callback will be invoked for the touch down action that begins a touch gesture, but may not be invoked for the touch-moved and touch-up actions that follow.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchTouchEvent
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTouchEvent
This is most useful to process touch events that happen outside of your window bounds, where there is no view to receive it.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchGenericMotionEvent
TODO: Verify before on... stuff
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onGenericMotionEvent
Generic motion events with source class SOURCE_CLASS_POINTER are delivered to the view under the pointer. All other generic motion events are delivered to the focused view.
TODO: After onUserInteraction?
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchTrackballEvent
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTrackballEvent
The call here happens before trackball movements are converted to DPAD key events, which then get sent back to the view hierarchy, and will be processed at the point for things like focus navigation.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchKeyEvent
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchKeyShortcutEvent
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onKeyDown
TODO: After onUserInteraction?
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onKeyLongPress
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onKeyMultiple
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onKeyShortcut
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onKeyUp
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onBackPressed
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateNavigateUpTaskStack
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPrepareNavigateUpTaskStack
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onNavigateUpFromChild
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onNavigateUp
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSearchRequested
..in response to a menu item, search button, or other widgets within your activity.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActionModeStarted
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onActionModeFinished
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onWindowStartingActionMode
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onConfigurationChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSharedPreferenceChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateDescription
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateThumbnail
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onProvideAssistData
Assit is requested by the user. TODO: WTF is this?
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onRetainNonConfigurationInstance
The function will be called between onStop() and onDestroy(). A new instance of the activity will always be immediately created after this one's onDestroy() is called.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onLowMemory
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTrimMemory
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onUserLeaveHint
this method is called right before the activity's onPause() callback.
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onWindowAttributesChanged
public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onWindowFocusChanged
Note that this provides information about global focus state, which is managed independently of activity lifecycles. As such, while focus changes will generally have some relation to lifecycle changes, you should not rely on any particular order between the callbacks here and those in the other lifecycle methods such as onResume().
public static void populate(java.util.List<? super AndroidEntryPointLocator.AndroidPossibleEntryPoint> possibleEntryPoints)
possibleEntryPoints - the list to extend.