how can data display thro switch case?
<h2>act=1</h2>

<pre><code>    String[] values = new String[] { "Android", "iPhone", "WindowsMobile"};
ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
     android.R.layout.simple_list_item_1, android.R.id.text1, values);
      lisdis.setAdapter(adapter); 
      lisdis.setOnItemClickListener(this);

}
@Override
public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int position, long id)
{

    Intent mIntent = new Intent(display_publishermagazine.this, display_publicationmagazine.class);
        mIntent.putExtra("position", position+1);
        startActivity(mIntent);
</code></pre>

<h2>act=2</h2>

<pre><code>    Intent mIntent = getIntent();
    int intValue = mIntent.getIntExtra("position",0);

   switch (intValue)
    {
        case 1:values = new String[] { "Android For Beginer","Android Devloper" };break;
        case 2:values = new String[] { "I-phone for beginer","I-phone for devloper" };break;
        case 3:values = new String[] { "windows for beginer","windows for devloper" };break;
    }


    ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
         android.R.layout.simple_list_item_1, android.R.id.text1, values);

lisdis.setAdapter(adapter); 
    lisdis.setOnItemClickListener(this);        
}

@Override
public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int position, long id)
{
    Intent myIntent = new Intent(display_publishermagazine.this, display_publicationmagazine.class);


    myIntent.putExtra("position", position+1);
    startActivity(myIntent);
   }
</code></pre>

<h2>act3</h2>

<pre><code>      Intent myIntent = getIntent(); 
      int intValue = myIntent.getIntExtra("position", 0);

    switch (intValue)
    {
        case 1:values = new String[] { "Android for lerner1","android for learner2" };break;
        case 2:values = new String[] { "Android  for devloper1","android for devloper2" };break;
    }

/*values = new String[] { "iphone for lerner1","iphone for learner2" }      
values = new String[] { "iphone for devloper1","iphone for devloper2} */
}

    ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,

             android.R.layout.simple_list_item_1, android.R.id.text1, values);

        g1.setAdapter(adapter); 
}
</code></pre>

<p>I need to</p>

<ul>
<li>display data in another activity using switch case when user click on android</li>
<li>then display data android Lerner or android developers.then  click on android learner</li>
<li>then display android lerner1 or android learner2</li>
<li>and when select android developer then display android lerner1 or android learner2.</li>
</ul>

<p>Here it works for only android not work for iphone or window.</p>
