Maybe you have no toString method right implemented for the object you are
trying to diplay

On Thu, Jun 26, 2008 at 5:51 PM, Sylvester Steele <[EMAIL PROTECTED]>
wrote:

>
>
>
> 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
> >
>


-- 
Fräntz Miccoli
+336.70.92.76.16
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
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