title: Spinner initialized when my activity starts - Android
body: <p>I have Spinner which name: turListe. It gets input values from database. When i start my activity, onOtemSelected starts automatically. How can i solve this problem?</p>
  
  <pre><code>turListe.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
  
          @Override
          public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                  int arg2, long arg3) {
              String turAdi;
              Intent intent = new Intent(MainScreen.this, TarifListe.class);
              Bundle bundle = new Bundle();
  
              turAdi = arg0.getItemAtPosition(arg2).toString();
              bundle.putString("turad", turAdi);
              intent.putExtras(bundle);
              startActivity(intent);
          }
  
          @Override
          public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
              // TODO Auto-generated method stub
  
          }
  
      });
  </code></pre>