I faced an error! According to the tutorial the code below must work and invoke the 
activity

 
StartingPoint

. However, it doesn't. I simplified the code and just invoke the 
activity

 no matter what, and it's working, so I just copy these two. Would you please check them?
Not working :


public class Menu extends ListActivity{

String classes[] = { "StartingPoint", "example1", "example2"
       , "example3", "example4", "example5", "example6"};  

@Override
public void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setListAdapter(new ArrayAdapter(Menu.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.thenewboston.travis." + cheese);        
   Intent ourIntent = new Intent(Menu.this,ourClass);
   startActivity(ourIntent);
   } catch (ClassNotFoundException e){
       e.printStackTrace();
   }
}
}
//////////////////////////////////////////////
This code works fine, so other parts of the project is just fine:
//////////////////////////////////////////////
public class Menu extends ListActivity{

String classes[] = { "StartingPoint", "example1", "example2"
       , "example3", "example4", "example5", "example6"};  

@Override
public void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setListAdapter(new ArrayAdapter(Menu.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);
   Intent ourIntent = new Intent("com.thenewboston.travis.STARTINGPOINT");
   startActivity(ourIntent);
}
}


Manifest:






   
       
           

           
       
   
         
       
           

           
       
   

   
       
           

           
       
   


I have a P.S. Here too :) In the second code I have used capital 'STARTINGPOINT' to invoke the 
activity, however, in the original tutorial he used 'StartingPoint', and append this to the name of the class, how does it work?
Thanks :)