Home
Videos
Android
Android Option Menus for Beginners

Android Option Menus for Beginners

Description

Menus are common component in application and in android Menus are for some actions like moving another activity. This is basic tutorial in which you will learn creating Menus in Android using Android studio

Android Option Menus for Beginners

In this video tutorial, we will learn how to add option menus in android application.

Step 1: Create a new project

  • Create a new project named "Menus"

Step 2: Update menu

  • In res/menu add Item entries

Step 3: Update Main Activity 

  • Override a method named onOptionsItemSelected 
  • Add a switch case for the different options
  • Add a Toast to display text on screen