androidspinnerandroid-spinner

Spinner onItemSelected called erroneously (without user action)


I have a spinner which I am showing in a dialog view, and the moment the dialog starts onItemSelected is called. I don't really want to process this but only when user makes the selection. So I either need to prevent this (maybe because no default value is set?), or I need to know it is not the user that is making this selection?


Solution

  • Androider, I have found a solution for this problem and posted it here (with code sample):

    Spinner onItemSelected() executes when it is not suppose to