Learn about the Android Menu onCreateOptionsMenu and onOptionsItemSelected methods

If you want to add Menu Items to the Action Bar then you will have to override two methods in your Activity Class.

  • onCreateOptionsMenu – To display Menu
  • onOptionsItemSelected – To handle user clicks

Follow the video to understand this better.