Android ListItem Not Working
<p>When I click on a List Item, it doesn't start a new activity. What is the reason? Other people have implemented the same code and there program is working. What should I do with this problem?
Here is the code:</p>

<pre><code>public class Menu extends ListActivity {

    String classes[]={"StartingPoint","Splash", "You", "Dumb"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setListAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, classes));
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        // TODO Auto-generated method stub
        super.onListItemClick(l, v, position, id);
        String cheese = classes[position];
        try {
            Class ourclass = Class.forName("com.umer.splashscreenwithsound." + cheese);
            //Class ourclass = Class.forName("com.umer.splashscreenwithsound.StartingPoint");
            Intent myintent = new Intent(Menu.this,ourclass);
            startActivity(myintent);
        } catch(ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
</code></pre>

<p>Please help.</p>
