如何在意图中获取微调器选择的位置并将其作为参数传递给另一个 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());