Switch between Android activities when listview item clicked
<p>I searched for hours to find good tutorial about switching between Android activities when a list view item clicked. All tutorials describe about calling different activities for different list view item clicked, but I want to run same activity without considering what item is clicked Here is the code I have used but this is not work.</p>

<pre><code>   list.setOnItemClickListener(new OnItemClickListener() {

     public void onItemClick(AdapterView&lt;?&gt; paramAdapterView, View paramView, int paramInt,
                        long paramLong) {
                    Intent newActivity = new Intent(getApplicationContext(), OrderDetails.class);     
                    startActivity(newActivity);
                }
                });
</code></pre>

<p>Activity called in Manifest.xml</p>

<pre><code>&lt;/activity&gt;
    &lt;activity android:name=".OrderetDetails"&gt;&lt;/activity&gt;
&lt;/application&gt;
</code></pre>

<p>How can I do that if it is possible ?</p>

<p>Thanks!</p>
