title: setOnItemSelectedListener android
body: <p>Okay i have one spiner, this is my spinner</p>
  
  <pre><code>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  list.add("SPBU");
  list.add("HOTEL");
  
  ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;(this,
        android.R.layout.simple_spinner_item, list);
        dataAdapter
        .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  spiner.setAdapter(dataAdapter);
  </code></pre>
  
  <p>I want create OnItemSelectedListener method, so i can detect if selection changed.
  The Problem is i dont know how to implement that, i do not understand what parameters to use in the method ( arg0, View arg1,int arg2, long arg3 ). this what i try so far</p>
  
  <pre><code>public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                      int arg2, long arg3) {
                  // my code here
  
              }
  </code></pre>