How do you get the selected value of a spinner -- Android

Posted by Matthew Hall on Stack Overflow See other posts from Stack Overflow or by Matthew Hall
Published on 2010-04-16T11:13:32Z Indexed on 2010/04/16 11:53 UTC
Read the original article Hit count: 410

Filed under:
|
|

Hi everyone, I'm trying to get the selected items string out of a spinner. So far I've got this: bundle.putString(ListDbAdapter.DB_PRI, v.getText().toString());

This doesn'y work and gives a casting exception (I thought you could cast a view to a widget that inherits it... obviously not!). So how do you get the selected value of a spinner

© Stack Overflow or respective owner

Related posts about android

Related posts about java