Show context menu from code behind

Viewed 21651

This might be a simple question, but I've been looking around and can't find the answer. Is there any code to show the context menu on Android from a code, instead of pressing the menu button? E.g. when I touch the screen then it'll call the context menu?

4 Answers

You can use

view.showContextMenu();

on your view.

Related