Of course as soon as I ask the question I figure it out.

getSelectedItemPosition() is what I was looking for.

My brain is fried from trying to get this challange project done :)

What is getSelectedItemId() returning anyhow?

On Apr 13, 9:40 am, SnowDrifter <[EMAIL PROTECTED]> wrote:
> This seems like an easy question but I am trying to get the id (the
> index from 0 to x from the top down) of which item I am currently
> highlighting in the ListView of a ListActivity.
>
> I thought for sure that getSelectedItemId() was the one to use but
> this returns strange information. The top item in my list is returning
> an id of 4? I seem to have no problem when I am using an
> onListItemClick which gives me a "position" as an argument but if I am
> anywhere else and need that data I cannot seem to find a way to get
> it.
>
> I am sure that I am crazy and it is something super easy but it is
> currently alluding me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to