I've also already tried (to no avail) explicitly setting the list view
item checked state via something like

listView.setItemChecked(i++, true);

as well as adding another column name and android.R.id.checkbox to the
SimpleCursorAdapter constructor.


On Nov 9, 3:30 am, songs <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've got a multi-choice checkbox list being populated from a database
> using the code below, but I can't figure out how to set the initial
> checked state based on one of other columns.  Anyone know how to do
> this?
>
> ==============================
> startManagingCursor(c);
> setListAdapter(new SimpleCursorAdapter(this,
>                         android.R.layout.simple_list_item_multiple_choice,
>                         c,
>                         new String[] {"title"},
>                         new int[] {android.R.id.text1}));
> ==============================
>
> Thanks,
> Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to