In Android Spinner, I can set selection to a particular Item in the code (using setSelection(int)). This will end up calling OnItemSelectedListener, which is fine.
But when the user selects an item from the screen, by clicking the spinner and the item, I want to handle this as a different event, because the logic in my application should do different things.
How to achieve this? To summarize, My Spinner should do this
If Value set from the code {
//do this..
}
else if user select a value {
//do that..
}