Search Results

Search found 1 results on 1 pages for 'gdonald'.

Page 1/1 | 1 

  • how to call context menu

    - by gdonald
    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?

    Read the article

1