I want apply different intents as a result of different activities. How can I do so?
<p>This is my code:</p>

<pre><code>public class demoProject1 extends Activity {
    int i;

    /** Called when the activity is first created. */
    public static final String lv_arr[]={"Image Excercise","Audio Play","Video Play","ListView Advanced Excercise","Task Bar Implementation","Map Excercise"};

    @Override

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ListView lv;

        lv = (ListView)findViewById(R.id.ListView01);
        lv.setAdapter(new ArrayAdapter&lt;String&gt;(demoProject1.this,R.layout.newlist,lv_arr) );
        lv.setDividerHeight(2);
        lv.setTextFilterEnabled(true); 
        lv.setOnItemClickListener(new OnItemClickListener() {
            public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                int position, long id) {                         

                Intent intent = new Intent(demoProject1.this,ImageExercise.class);
                startActivity(intent);

                //Intent intent1 = new Intent(demoProject1.this,AudioPlay.class);
                //startActivity(intent1);   
            }
        });
    }
}
</code></pre>

<p>What I want is the listview being displayed and when a view is clicked a new page opens.  How can I apply Switch case to it?</p>
