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. Alsa integration in Android Donut

Hi ,

    I have ported Donut on OMAP 3530 and wanted to integrate alsa in
it. By default the manifest.xml is not having any alsa related git
files. so add the alsa related files from the masted git and got some
compilations issues. so I reverted to OMAP3 alsa files from project
Rowboat and even now audio is not working.

One more problem arises after alsa integration /system/bin/vold deamon
is not running as expected and is restarting often which is not
allowing to mount SD card. Have any one faced similar issues.

Kindly help me on how to integrate alsa in donut.

Thanks
Fasil

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

2. Anybody know the number of Android user that can buy app against those who cant?

While Android seems to be raging recently, however not all users are
able to buy application through Market (Thanks Google and their
limited policy).

I just don't know why should I developing an app for a platform that
doesn't really convinced me that it will make me some profit. At the
very least, Google should be able to provide the number of users
logging in to the Market and download paid applications.

I have an unrooted phone sitting here and like 65% of the apps (if not
more) consists of some show-random-photos and sound-clips, I don't
even know if I should call them applications any more. So unless the
apps get some recommendation from somebody, it is more than likely
that it will not get hit unless user know what they are looking for.

The problem comes from the ability for developer to sell and buyer to
buy. It doesn't matter how many phone will be bought in the following
year or how many model will come out. If the user can't buy it, those
number are meaningless to developers.

The whole concern was actually from people asking why am I doing it
when I dont get paid. It's actually a very good question. Not to
mention couple of iPhone developers that suggest AppStore.

It's all based on some article on the net and people around me though.
Has anybody feeling that way as well?

-- 

3. Copy protection bug statuses

4. frame buffer data in android

5. Audio options for music app - should I use JET?

6. Import existing project into workspace - Can't see Android Library in Java Build Path

7. AudioTrack