I take it you don't code java very much :-).

I don't see why you are trying to get the selected item with
VList.getSelectedItem(). I think you want to just use the arg1 in my
example.

The toString() probably won't give you what you want and it would
work, but apparently o is null since you got a null pointer exception.
Try arg1, but again, I think toString is not what you want. It sounds
like you want to get the text that was displayed to the user for that
item? I don't recall what arg1 is, but it might be the TextView used
for that. You could cast it to a TextView and call getText() on it to
see. You'll know soon enough if that's what it is.

On Apr 13, 5:06 pm, SQLserver <[EMAIL PROTECTED]> wrote:
> Does anybody know whether that conversion from the object to string
> works right?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to