spinners in one activity and refresh the activity
<p>I wanna make 3 spinners at 1 activity each one contains data depend on the Item selected from the previous spinner 
My Question is  how can I do this??
and I want the default items  fill depending on the first default item of the first spinner?</p>

<pre><code>ListAdapter Adapter1 = new SimpleAdapter(this,
                List1,
                android.R.layout.simple_dropdown_item_1line,
                new String[] { "t1" }, new int[] { android.R.id.tx1 });
        s1.setAdapter((SpinnerAdapter) TypeArrayAdapter);

        s1.setOnItemSelectedListener(new OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                    int arg2, long arg3) {
                // TODO Auto-generated method stub
                str1 = s1.getSelectedItem();

            }

            @Override
            public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                // TODO Auto-generated method stub

            }

        });

                   getStr(str1);
        ListAdapter Adapter2 = new SimpleAdapter(this,
                List2,
                android.R.layout.simple_dropdown_item_1line,
                new String[] { "t2" }, new int[] { android.R.id.tx1 });
        s2.setAdapter((SpinnerAdapter) TypeArrayAdapter);

        s2.setOnItemSelectedListener(new OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                    int arg2, long arg3) {
                // TODO Auto-generated method stub
                str2 = s1.getSelectedItem();

            }

            @Override
            public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                // TODO Auto-generated method stub

            }

        });
</code></pre>
