[android-developers] How do I control when to open the context menu myself?

2010-01-08 Thread Mark Gjøl
I'm writing a program where the user's finger will often linger on the screen for more than the couple of seconds it takes for the context menu to activate. I have a class that controls when this should happen, but I seem to be unable to launch the context menu manually. As a last resort I decided

Re: [android-developers] How do I control when to open the context menu myself?

2010-01-08 Thread Greg Donald
On Fri, Jan 8, 2010 at 7:17 PM, Mark Gjøl bitflips...@gmail.com wrote: What is the correct way of manually opening the context menu? private OnClickListener optionsClickListener = new OnClickListener() { public void onClick( View v ) { registerForContextMenu( v ); openContextMenu(