public class testAddSpiner extends Activity { private Spinner m_myDynamicSpinner; private EditText m_addItemText; private ArrayAdapter m_adapterForS
addButton.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { addNewSpinnerItem(); int a= m_adapterForSpinner.getCount(); m_myDynamicSpinner.setSelection(a-1); // m_adapterForSpinner.notifyDataSetChanged(); } });