get same value issue in list view from String Array in Android
<p><em><strong>I have problem when i get value from two or more String Array in list view i get only first String Array in list view using different button Click List value are coming from array th list is not getting different value  in list</em></strong></p>

<p>//Here is my code using switch case</p>

<pre><code>import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class CategoriesList extends ListActivity {
    ListView listView;
    private String[] name1;
    private static int[] name = { R.array.NewArrivals, R.array.Sarees,
            R.array.SalwarKameez, R.array.Lahenga, R.array.Kurti,
            R.array.Jewelry, R.array.Accessories, R.array.ReadyToShip };

    @Override
    public void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.itemlist);

        listView = (ListView) findViewById(android.R.id.list);
        displayList();
    }

    public void displayList() {
        // TODO Auto-generated method stub
        for (int i = 1; i &lt;= name.length; i++) 
        {
                name1 = getResources().getStringArray(name[i]);
                ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1, name1);
                setListAdapter(adapter);
                adapter.setNotifyOnChange(true);
        }
    }
}
</code></pre>
