I have a spinner in my Android app, and its onItemSelected() event automatically gets triggered upon entering the activity.
onItemSelected()
How do I avoid this?
I have solved this issue, You can avoid this issue by not setting any default values to the spinner
int initialposition=spinner.getSelectedItemPosition(); spinner.setSelection(initialposition, false);
This will avoid entering into onItemSelected()