title: app activities crashes
body: <p>so I'm new and working on android programs  to work with activities and stuff anyways im having a problem with the class not found exception. so when i run the app i get the list of all my activities and when i select any of them none of them work, i come to the conclusion its the line with .forName which im sure im using it right .forName("package" + className)  which all classes are located in my package  and spelling is correct. but there not being located! 
  here is my code all all the items in the test array are my activities </p>
  
  <pre><code>public class MainActivity extends ListActivity {
      String tests [] = {"LifeCycleTest","SingleTouchTest","MultiTouchTest","KeyTest","AccelerometerTest","AssetsTest",
             "ExternalStorageTest","SoundPoolTest","MediaPlayerTest","FullScreenTest","RenderViewTest","ShapeTest","BitmapTest",
              "FontTest","SurfaceViewTest"};
  
      @Override
      public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setListAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,tests));
      }
  
      @Override
      protected void onListItemClick(ListView list, View view, int position, long id){
          super.onListItemClick(list,view,position, id);
          String testName = tests[position];
  
  
  // my problem
          try {
              Class clazz = Class
                      .forName("test.com." + testName);
  
              Intent intent = new Intent(this, clazz);
              startActivity(intent);
  
          }catch (ClassNotFoundException e){
  
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>so i added the .forName("test.com." + class) and now it just crashes here's what the lifecyle class looks like when i try to select it. iv completely run out of ideas.</p>
  
  <pre><code>    public class LifeCycleTest extends Activity{
          StringBuilder builder = new StringBuilder();
          TextView textView;
  
          private void log(String text){
              Log.d("LifeCycleTest",text);
              builder.append(text);
              builder.append('\n');
              textView.setText(builder.toString());
  
          }
  
  
          @Override
          public void onCreate(Bundle savedInstanceState){
             super.onCreate(savedInstanceState);
             textView = new TextView(this);
             textView.setText(builder.toString());
             setContentView(textView);
             log("created");
          }
  
          @Override
          protected void onResume(){
              super.onResume();
              log("resumed");
          }  
  
          @Override
          protected void onPause(){
              super.onPause();
              log("Paused");
  
              if(isFinishing()){
                  log("finishing");
              }
  
  
  
  
  
      }
  }
  </code></pre>
  
  <p>this is my manifest</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
            package="fox.com"
            android:versionCode="1"
            android:versionName="1.0"
            android:installLocation="preferExternal"&gt;
      &lt;application android:label="@string/app_name" 
                   android:icon="@drawable/mrnom"
                   android:debuggable="true"&gt;
          &lt;activity android:name=".MainActivity"
                    android:label="@string/app_name"         
                    android:configChanges="keyboard|keyboardHidden|orientation"&gt;
              &lt;activity android:label="Life Cycle Test"
                        android:name=".LifeCycleTest"
                        android:configChanges="keyboard|keyboardHidden|orientation"&gt;&lt;/activity&gt;
  
                  &lt;intent-filter&gt;
                      &lt;action android:name="android.intent.action.MAIN" /&gt;
                      &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                  &lt;/intent-filter&gt;
  
              &lt;/activity&gt;
      &lt;/application&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK"/&gt;
      &lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="16"/&gt;
  &lt;/manifest&gt;
  </code></pre>