> If you are suggesting that I do:
>
> fruitsAdapter.getItem(position).toString()  this gives me a weird
> string

Try fruitsAdapter.getItem(position).getString(0).

My guess is that the ArrayAdapter creates a Cursor subclass instance
behind the scenes to wrap around the array or List. Most likely, it only
has one column, so getString(0) would return the String at column 0 for
the current row (which, hopefully, getItem(position) sets properly).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!


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