Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Listener dismiss context menu

Problem : I'm doing

registerForContextMenu(list);

And everything is good, except ;

Problem : I want to trigger an action when the contextMenu is dismissed. How can I have a listener if the user dismiss the contextMenu ?

Thanks.

like image 361
Sebastien FERRAND Avatar asked Aug 27 '12 09:08

Sebastien FERRAND


1 Answers

You can override the method:

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

and do whatever you want to :)

Good luck, Arkde

like image 131
Aurelian Cotuna Avatar answered Nov 03 '22 08:11

Aurelian Cotuna