How to get the cursor index from an i

by » 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
result not an id

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


Other Threads

1. Adjust the 3G emitting strength

Hello everyone.
Is there any way to adjust the 3G emitting strength through RIL or AT
or is there a sleep mode or idle mode for modem which users can
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
Sorry in advance if it's a stupid question.


Guan-yu Tseng


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