Class AbstractActivity

  • All Implemented Interfaces:
    Activity

    public abstract class AbstractActivity
    extends java.lang.Object
    implements Activity
    Simple Activity implementation that is always willing to stop, and does nothing onStop and onCancel.
    • Constructor Detail

      • AbstractActivity

        public AbstractActivity()
    • Method Detail

      • mayStop

        public java.lang.String mayStop()
        Description copied from interface: Activity
        Called when the user is trying to navigate away from this activity.
        Specified by:
        mayStop in interface Activity
        Returns:
        A message to display to the user, e.g. to warn of unsaved work, or null to say nothing
      • onStop

        public void onStop()
        Description copied from interface: Activity
        Called when the Activity's widget has been removed from view. All event handlers it registered will have been removed before this method is called.
        Specified by:
        onStop in interface Activity