Class ActivityEP


  • public final class ActivityEP
    extends Object
    Hardcoded EntryPoint-specifications for an Android-Activity. The specifications are read and handled by AndroidEntryPointLocator.
    See Also:
    AndroidEntryPointLocator
    • Field Detail

      • onCreate

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreate
        Called after App.onCreate - assumed to be before Service.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
      • onStart

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onStart
        Called a view steps before the Activity gets visible. 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().
      • onRestoreInstanceState

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onRestoreInstanceState
        Restores the View-State (and may do other stuff). 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).
      • onResume

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onResume
        Activity starts interacting with the user. Called after onRestoreInstanceState(Bundle), onRestart(), or onPause() Use onWindowFocusChanged(boolean) to know for certain that your activity is visible to the user.
      • onNewIntent

        public static final 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. onNewIntent() will be called on the existing instance with the Intent that was used to re-launch it. An activity will always be paused before receiving a new intent, so you can count on onResume() being called after this method.
      • onSaveInstanceState

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSaveInstanceState
        Called to retrieve per-instance state from an activity before being killed. 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().
      • onPause

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPause
        Activity is going to the background. 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.
      • onDestroy

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDestroy
        Perform any final cleanup before an activity is destroyed. 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.
      • dispatchPopulateAccessibilityEvent

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchPopulateAccessibilityEvent
        Accessibility events that are sent by the system when something notable happens in the user interface. For example, when a Button is clicked, a View is focused, etc. TODO: Assert included everywhere
      • onCreateDialog

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateDialog
        Callback for creating dialogs that are managed (saved and restored) for you by the activity. If you would like an opportunity to prepare your dialog before it is shown, override onPrepareDialog. This method was deprecated in API level 13.
      • onCreateView

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateView
        used when inflating with the LayoutInflater returned by getSystemService(String). TODO: More info This implementation handles tags to embed fragments inside of the activity.
      • onAttachFragment

        public static final 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().
      • onAttachedToWindow

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onAttachedToWindow
        Called when the main window associated with the activity has been attached to the window manager. See View.onAttachedToWindow() for more information. # TODO: See Note that this function is guaranteed to be called before View.onDraw including before or after onMeasure(int, int).
      • onDetachedFromWindow

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onDetachedFromWindow
        Called when the main window associated with the activity has been detached from the window manager. See View.onDetachedFromWindow() for more information. # TODO See
      • onApplyThemeResource

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onApplyThemeResource
        Called by setTheme(int) and getTheme() to apply a theme resource to the current Theme object. TODO: Do we have to register an entrypoint for this?
      • onPanelClosed

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onPanelClosed
        TODO: GET MORE INFO ON THIS!. This calls through to onOptionsMenuClosed(Menu) method for the FEATURE_OPTIONS_PANEL. For context menus (FEATURE_CONTEXT_MENU), the onContextMenuClosed(Menu) will be called.
      • onCreateContextMenu

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onCreateContextMenu
        Called when a context menu for the view is about to be shown. 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.
      • onContextItemSelected

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextItemSelected
        TODO: How does this correlate to onMenuItemSelected. You can use this method for any items for which you would like to do processing without those other facilities.
      • onContextMenuClosed

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onContextMenuClosed
        This hook is called whenever the context menu is being closed. either by the user canceling the menu with the back/menu button, or when an item is selected.
      • onUserInteraction

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onUserInteraction
        Called whenever a key, touch, or trackball event is dispatched to the activity. 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.
      • onTouchEvent

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTouchEvent
        Called when a touch screen event was not handled by any of the views under it. This is most useful to process touch events that happen outside of your window bounds, where there is no view to receive it.
      • dispatchGenericMotionEvent

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint dispatchGenericMotionEvent
        You can override this to intercept all generic motion events before they are dispatched to the window. TODO: Verify before on... stuff
      • onGenericMotionEvent

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onGenericMotionEvent
        Called when a generic motion event was not handled by any of the views inside of the activity. 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?
      • onTrackballEvent

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onTrackballEvent
        Called when the trackball was moved and not handled by any of the views inside of the activity. 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.
      • onKeyDown

        public static final 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. TODO: After onUserInteraction?
      • onNavigateUpFromChild

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onNavigateUpFromChild
        This is called when a child activity of this one attempts to navigate up. The default implementation simply calls onNavigateUp() on this activity (the parent).
      • onSearchRequested

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onSearchRequested
        This hook is called when the user signals the desire to start a search. ..in response to a menu item, search button, or other widgets within your activity.
      • onConfigurationChanged

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onConfigurationChanged
        Will be called if you have selected configurations you would like to handle with the configChanges attribute in your manifest. If any configuration change occurs that is not selected to be reported by that attribute, then instead of reporting it the system will stop and restart the activity
      • onRetainNonConfigurationInstance

        public static final 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. 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.
      • onLowMemory

        public static final 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. That is, before reaching the point of killing processes hosting service and foreground UI that we would like to avoid killing.
      • onUserLeaveHint

        public static final 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. For example, when the user presses the Home key. this method is called right before the activity's onPause() callback.
      • onWindowFocusChanged

        public static final AndroidEntryPointLocator.AndroidPossibleEntryPoint onWindowFocusChanged
        Called when the current Window of the activity gains or loses focus. 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().
    • Constructor Detail

      • ActivityEP

        public ActivityEP()