Android NULL menuInfo in onCreateContextMenu and onContextItemSelected only with manual call to openContextMenu in onListItemClick. Long click works
问题 I have parsed through a lot of the posts here and haven't found anything quite like my problem. Basically I am trying to call openContextMenu(l) in onListItemClick . Doing so creates a context menu with no menuInfo . Performing a long click will work correctly. After the long click is performed, my code will start working and actually get a menuInfo that is not null. I have a ListActivity that is filled with a SimpleCursorAdapter which grabs data from SQL . In my onCreate I