views:

145

answers:

1

Hi all,

This might be a simple question, but i've been looking around and can't find the answer, well, as my title said, is there any code to show the context menu on the android from a code, instead press the menu button? eg. when i touch the screen then it'll call the context menu?

Regards, AnD

+1  A: 

Call openContextMenu() on your Activity whenever you want to open it. Note that this is a rather unusual UI pattern, one that your users may not expect.

CommonsWare
Great! it's work
AnD