@Override
public boolean onMenuItemClick(MenuItem aaa)
{
if(aaa.getItemId()==R.id.call){
Toast.makeText(getApplicationContext(),"Call is clicked",Toast.LENGTH_SHORT).show();}
if(aaa.getItemId()==R.id.sms){
Toast.makeText(getApplicationContext(),"SMS is clicked",Toast.LENGTH_SHORT).show();}
if(aaa.getItemId()==R.id.video){
Toast.makeText(getApplicationContext(),"Video Call is clicked",Toast.LENGTH_SHORT).show();}
// TODO: Implement this method
return true;
}});}}
Create a new folder and add pop.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android">