title: Spinner:How to know whether item selection was changed programmatically or by a user action through UI
body: <p>I have code that runs <code>OnItemSelectedListener</code> event of spinner. So when I am in the method:</p>
  
  <pre><code>public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int position, long id) {
      // I want to do something here if it's a user who changed the the selected item
  }
  </code></pre>
  
  <p>...how can I know whether the item selection was done programmatically or by a user action through the UI?</p>