Android knows about several types of menus (e.g. Options Menu and Context Menu). onMenuItemSelected
is the generic callback. You don't need to use this usually. onOptionsItemSelected
is the callback of the options menu and onContextItemSelected
is the callback of the context menu. Use these two specific ones instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…