I have two spinners (day_spin and time_spin) in one Activity. I want to save the selected day_spin value into a variable. Is it possible to differenciate betwee
Activity
public void onItemSelected(AdapterView> parent, View view, int pos, long id) { if(parent.getId() == R.id.spinner1) { //do this } else if(parent.getId() == R.id.spinner2) { //do this } }