Editing the EditText context menu in Android

android, android-edittext, contextmenu

Solution

See https://stackoverflow.com/a/7383161/1351347

It is NOT possible to override the system-wide contextMenu. You could (as you already know) push another contextMenu on a longClick on this single EditText.

Problem

Is there a way to add a custom case to the existing context menu in Android? We all have a context menu that is called on the active `EditText` view, the one with "Input Type" and other. What I need is to add another case to this menu, say "Options". I honestly searched for info on Android Developers, but no luck over there. They only write about creating your own menu from scratch. I don't need to change it systemwide as this guy does. My only concern is to change it in one activity of my app, one instance of `EditText`to be precise.

Original source

Related problems