How to get the cursor index from an i

by michael.bollm...@googlemail.com » Sat, 07 Mar 2009 02:37:17 GMT


Sponsored Links
 Let's assume my cursor returns 100 items
I want to select the item that got the id 50
I assume that setSingleChoiceItems expects an index based on the
cursors
result not an id

So how do i convert the id to an result index without doing a costly
linear search

thanks
michael
--~--~---------~--~----~------------~-------~--~----~