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. Adjust the 3G emitting strength

Hello everyone.
Is there any way to adjust the 3G emitting strength through RIL or AT
command
or is there a sleep mode or idle mode for modem which users can
change?
Because I am designing some ways to save the power of android phone, I
want to
know whether we can save power by lowering the power consumption of
3G.
Sorry in advance if it's a stupid question.

Regards,

Guan-yu Tseng

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. multi resolution image button selectors broken?

It is not the right way. Do not use @drawable-ldpi/, just keep the
same XML file, it will work. The system will find startstopin and
startstopout in the right drawable-XXX/ directory.



> 

3. EditText hint shows extra spaces when inputType="textpassword"

4. Problem in Accessing 2.9 MB Database from Apps

5. Clicking a link in Browser initates a new Intent

6. Samsung's Galaxy stuck in history

7. Android porting feasibility on Versatile Application Baseboard for