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: 
**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`
I think `supplier` in your code means `spinner`, do Replace this line 

```
 String msupplier=supplier.getSelectedItem().toString();

```

with the below line:

```
 String msupplier= supplier.getItemAtPosition(position).toString(); 

```