I open my context menu like this:
private OnClickListener optionsClickListener = new OnClickListener()
{
public void onClick( View v )
{
registerForContextMenu( v );
openContextMenu( v );
}
};
How can I call
registerForContextMenu( v );
openContextMenu( v );
from inside my regular menu handler here:
public boolean onOptionsItemSelected( MenuItem item )
{
switch( item.getItemId() )
{
case OPTIONS:
registerForContextMenu( v );
openContextMenu( v );
return true;
where I have no View to pass?
Thanks,
--
Greg Donald
http://destiney.com/
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en