Is it possible to add something to the list of items that shows up when a user long presses on any Edit Text? (Cut, copy paste, select text, select all, input method) I want
There are 2 ways: 1st one described by Shahab. 2nd one is more simple. You need to just override standard method of your activity, like:
@Override
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo)
{
if(view.getId()==R.id.MyEditTextId)
{
menu.add(Menu.NONE, MyMenu, Menu.NONE, R.string.MyMenuText);
}
else
super.onCreateContextMenu(menu, view, menuInfo);
}
After that you'll have on long press popup context menu