I am trying to make two spinners on a page for an episode list type program, one for Season and one for Episode, I have these two spinners working with the following code: public class Season extends Activity implements OnClickListener { public void onClick(View v) { switch (v.getId()) { } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.arrays); Spinner s = (Spinner) findViewById(R.id.spinner); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.seasons, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); s.setAdapter(adapter); Spinner s1 = (Spinner) findViewById(R.id.Spinner01); ArrayAdapter adapter2 = ArrayAdapter.createFromResource( this, R.array.episodes, android.R.layout.simple_spinner_item); adapter2.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); s1.setAdapter(adapter2); } Now I am trying to make it so when I hit a submit button on the page, it takes the value from spinner s and spinner s1 and opens the right class which will have details on that specific episode, any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---