Class MainActivity

    • Constructor Detail

      • MainActivity

        public MainActivity()
    • Method Detail

      • onCreate

        protected void onCreate​(Bundle savedInstanceState)
        Called when the activity is starting followed by initilization including tab layout.
        Overrides:
        onCreate in class FragmentActivity
        Parameters:
        savedInstanceState - A mapping from String keys to various Parcelable values
      • onCreateOptionsMenu

        public boolean onCreateOptionsMenu​(Menu menu)
        Prepare the Screen's standard options menu to be displayed. This is called right before the menu is shown, every time it is shown. You can use this method to efficiently enable/disable items or otherwise dynamically modify the contents.
        Overrides:
        onCreateOptionsMenu in class Activity
        Parameters:
        menu - Interface for managing the items in a menu
        Returns:
        shows user the option to sign out
      • onOptionsItemSelected

        public boolean onOptionsItemSelected​(MenuItem item)
        This hook is called whenever an item in your options menu is selected.
        Overrides:
        onOptionsItemSelected in class Activity
        Parameters:
        item - Interface for direct access to a previously created menu item
        Returns:
        users choice to sign out is granted on click