On Jun 26, 2:31 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Somewhere, you must have created an Adapter and set it on the
> ListView. In your onItemClick() method, there's a parameter called
> position. It gives you the index of the clicked item in the adapter.
> You just need to call myAdapter.getItem(position) and you will get the
> result you want.
>

I tried this. I want to set the string I get, as the title, so I do a
myAdapter.getItem(position).toString() , however this gives me
something like :

[EMAIL PROTECTED]

which is not the clicked item. This is a SimpleCursorAdapter.

Thanks,
Sylvester
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to