[android-beginners] Re: Unable to display ContextMenu in a ListView with multiple components

2009-11-15 Thread Gray-M
I've had a similar problem. I believe that the issue is that the ListView does not like to have 'focusable' items. I wanted a CheckBox I could initialize but then I lost the context menu. I've reverted to using CheckedTextView instead. This has problems if you want to set the initial state of the

[android-beginners] How to create context menus when using CursorAdapter in ListActivity's

2009-11-11 Thread Gray-M
I cannot figure out how to get a context menu when using a class derived from CursorAdapter in my ListActivity. Using a SimpleCursorAdapter works fine ... onCreate(Bundle b) { ... SimpleCursorAdapter sca = new SimpleCursorAdapter(...); setListAdapter(sca);