Question: setOnItemClickListener doesn't work with android Spinner. Here is my code:

```
supplier.setOnItemClickListener(new OnItemClickListener() {

                @Override
                public void onItemClick(AdapterView<?> parent, View view, int position,
                        long id) {
                    // TODO Auto-generated method stub

                    String msupplier=supplier.getSelectedItem().toString();
                    Log.e("Selected item : ",msupplier);

                }
            });

```

Answer: 
setOnItemClickListener will not work with android spinner.Alternatively, try using this method:

> 
> setOnItemSelectedListener
> 
> 
> 

Change your code like this:

```
supplier.setOnItemSelectedListener(new OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView<?> arg0, View arg1,
                    int arg2, long arg3) {
                // TODO Auto-generated method stub
                String msupplier=supplier.getSelectedItem().toString();

                Log.e("Selected item : ",msupplier);
}

            @Override
            public void onNothingSelected(AdapterView<?> arg0) {
                // TODO Auto-generated method stub

            }
        });

```
**1.** I think you should check your xml file which contains the spinner. Make sure haven't set `android:clickable = "false"`.

**2.** please check your spinner adapter and make sure in your `getView(int position, View convertView, ViewGroup parent)` method, you haven't set any widget click callback event such as `Button`,`Imageview`,`TextView`