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
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Control standardization - Moving forward

I'm a new user and very happy to be part of this Android journey.  I
as I'm sure all of you would like to see this succeed.  I have a IT
marketing background and would like to help out.  I'm sure a lot of
developers, if not most, are writing code to make money.  If this
platform is to become the mobile standard then we need to develop
standards in the way we navigate and use applications.  This is for
the masses.  People don't want to tinker with it and "figure out" how
to navigate an application.  I understand we are on the bleeding edge
of this journey.  However, to gain mass acceptance we or someone needs
to address this issue and enact some type of guideline or control.  I
see this platform as the future and don't want to see it end as a
footnote in history or relegated as a techie platform.  Let's get some
critical mass, get hardware manufacturer buy in and I know there will
always be room for bleeding edge programmers pushing the envelope.

I VOTE:  STANDARDIZE APPLICATION NAVIGTION

--~--~---------~--~----~------------~-------~--~----~

2. Wat to buy???

Hi everyone,
                i live in India and i wanna own an android phone...
can anyone gimme suggestions as to wat phone i can buy, from where to buy &
wat'd be d approx cost???

-- 
Regards,
Sujay
Laurence J. 
Peter<http://www.brainyquote.com/quotes/authors/l/laurence_j_peter.html>
- "If two wrongs don't make a right, try three."

--~--~---------~--~----~------------~-------~--~----~

3. Porting Android on a Non-Mobile SoC

4. How to change default intent action?

5. Need Help Dream!!!

6. problem in <include> tag in relative layout xml files

7. ClassNotFoundException