spinner and onItemSelected
<p>If I have 2 spinner depended with  type  ArrayList></p>

<pre><code> spinner2.setOnItemSelectedListener(new OnItemSelectedListener() {
                    @Override
                    public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int position, long id) {
                         ArrayList&lt;HashMap&lt;String, String&gt;&gt; arrList = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;();
                        for (HashMap&lt;String, String&gt; map2 : arrList) {
                            String value = map2.get("SectionID");
                            // Do something

                            Context context = getApplicationContext();

                            int duration = Toast.LENGTH_SHORT;

                            Toast toast = Toast.makeText(context, value, duration);
                            toast.show();
                        Log.d("wwwwwwwwwwwwwwwwwwww: ", value);
                        // Do something
                    }
                    }
                    @Override
                    public void onNothingSelected(AdapterView&lt;?&gt; adapter) {

                    }
                }); 
</code></pre>

<p>i do like this but kothing happend and logcat not having error</p>
