title: How can i start a different activity on item click from a custom listview?
body: <p>i followed numerous tuitorials like <a href="http://www.javacodegeeks.com/2013/09/android-listview-with-adapter-example.html" rel="nofollow noreferrer">http://www.javacodegeeks.com/2013/09/android-listview-with-adapter-example.html</a>
  Also followed the questions asked here <a href="https://stackoverflow.com/questions/20778181/how-to-make-custom-listview-to-open-other-activities-when-clicking-list-item">How to make custom ListView to open other activities when clicking list item?</a>
  However after trying the answers here(<a href="https://stackoverflow.com/questions/20778181/how-to-make-custom-listview-to-open-other-activities-when-clicking-list-item">How to make custom ListView to open other activities when clicking list item?</a>) my app keeps stopping whenever i select an item from my listview.
  My main activity code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class MainActivity extends Activity {
     ListView list;
     String[] web = {
       "Notifications",
       "School",
       "What's Hot",
       "Tell a friend",
       "Hit us up",
       "Settings",
       "About &amp; Help"
     };
  @Override
     protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);
       CustomList adapter = new
           CustomList(MainActivity.this, web, imageId);
       list=(ListView)findViewById(R.id.list);
           list.setAdapter(adapter);
           list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
                  public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                                          int position, long id) {
             switch(position){
             case 0:  Intent newActivity = new Intent(MainActivity.this, Notifications.class);     
                   startActivity(newActivity);
                   break;
          case 1:  Intent newActivity1 = new Intent(MainActivity.this, School.class);     
                   startActivity(newActivity1);
                   break;
          case 2:  Intent newActivity2 = new Intent(MainActivity.this, Whats_hot.class);     
                   startActivity(newActivity2);
                   break;
          case 3:  Intent newActivity3 = new Intent(MainActivity.this, Tellafriend.class);     
                   startActivity(newActivity3);
                   break;
          case 4:  Intent newActivity4 = new Intent(MainActivity.this, Hitusup.class);     
                   startActivity(newActivity4);
                   break;
          case 5:  Intent newActivity5 = new Intent(MainActivity.this, Settings.class);     
             startActivity(newActivity5);
             break;
    case 6:  Intent newActivity6 = new Intent(MainActivity.this, AboutHelp.class);     
             startActivity(newActivity6);
             break;
    
             }
            
            }
           @SuppressWarnings("unused")
           public void onClick(View v){ 
        };
      });}
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is the code of one of the activities (School)am trying to start :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class School extends Activity{
   public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.detail);
   
   
   Intent newActivity1=new Intent();
   setResult(RESULT_OK, newActivity1);
      finish();
   }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>On my manifest i added this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;/activity&gt;
          &lt;activity android:name=".Notifications"&gt;&lt;/activity&gt;
              &lt;activity android:name=".School"&gt;&lt;/activity&gt;
                  &lt;activity android:name=".Whats_hot"&gt;&lt;/activity&gt;
                      &lt;activity android:name=".Tellafriend"&gt;&lt;/activity&gt;
                          &lt;activity android:name=".Hitusup"&gt;&lt;/activity&gt;
                              &lt;activity android:name=".Settings"&gt;&lt;/activity&gt;
                                  &lt;activity android:name=".AboutHelp"&gt;
              </code></pre>
  </div>
  </div>
  </p>
  
  <p>My logcat:
  11-10 14:25:58.080: W/dalvikvm(13150): Refusing to reopen boot DEX '/system/framework/hwframework.jar'
  11-10 14:25:59.360: I/Adreno200-EGL(13150): : EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.01.21.010_msm8625_JB_REL_2.0.3_Merge_release_AU (Merge)
  11-10 14:25:59.360: I/Adreno200-EGL(13150): Build Date: 10/26/12 Fri
  11-10 14:25:59.360: I/Adreno200-EGL(13150): Local Branch: 
  11-10 14:25:59.360: I/Adreno200-EGL(13150): Remote Branch: quic/jb_rel_2.0.3
  11-10 14:25:59.360: I/Adreno200-EGL(13150): Local Patches: NONE
  11-10 14:25:59.360: I/Adreno200-EGL(13150): Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.01.21.010 +  NOTHING
  11-10 14:26:00.450: I/Choreographer(13150): Skipped 90 frames!  The application may be doing too much work on its main thread.
  11-10 14:26:03.230: W/dalvikvm(13150): threadid=1: thread exiting with uncaught exception (group=0x413fe438)</p>
  
  <p>There's something wrong somewhere that i cannot see.I'm new to android development and any help from you guys would be very much appreciated.</p>