Thank you, I was able to get it working with this...
public void DisplayNotice(String notice)
{
Toast.makeText(this,
notice,
Toast.LENGTH_LONG).show();
}
public void onItemSelected(AdapterView parent, View v, int
position, long id) {
switch (position) {
case 0:
DisplayNotice(parent.getSelectedItem().toString());
break;
case 1:
DisplayNotice(parent.getSelectedItem().toString());
break;
case 2:
DisplayNotice(parent.getSelectedItem().toString());
break;
default:
DisplayNotice(parent.getSelectedItem().toString());
break;
}
}
public void onNothingSelected(AdapterView parent) {
}
On Sep 2, 4:30 pm, Jack Ha <[email protected]> wrote:
> spinner.getSelectedItem()
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
> The coverage you need at the price you want
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Sep 2, 12:47 pm, Toney <[email protected]> wrote:
>
>
>
> > I'm trying to get the value that a user has chosen with the spinner.
> > Can anyone give me an example of how to do this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---