Android Listener disables context menu

Problem: i do

registerForContextMenu(list);

And all is well, except;

Problem: I want to trigger an action when contextMenu is rejected. How can I get a listener if the user misses contextMenu?

Thank.

+5
source share
1 answer

You can override the method:

@Override
public void onContextMenuClosed(Menu menu) {
    super.onContextMenuClosed(menu);
}

and do whatever you want :)

Good luck, Arkde

+9
source

All Articles