How do I get spinner selected position in intent and pass it as parameter to another Activity?
spinner sp;
if (position==1) {
do this
} if (position==2) {
do this
}
Intent i = new Intent(this.getApplicationContext(), AgAppMenu.class);
Bundle bundle = new Bundle();
bundle.putString("mno", mobile.getText().toString());
bundle.putString("pinno", pin.getText().toString());
bundle.putLong("CODE",sp.getSelectedItemPosition());