title: How to declare multiple activities in Manifest.xml on Android Eclipse
body: <p>I am self learner to android.<br>
  Right now i have five pages in an android application.The first page contains two buttons(button1,button2).If i trigger the button1 it should go to the second page,which  contains one button,again if i trigger this button finally it should simply display a tab host which laying on the third page.Likewise if i trigger the button2 from the page one it should go to page four and page five as like what the button1 has done.</p>
  
  <p>During at run when i am clicking the button from page four,it shown error message as<br>
  <strong>Sorry! The application Tabhost_demo has stopped unexpectedly.please try again!</strong><br>
  (Note : Other Pages activities are working well rather than four and five).  </p>
  
  <p><strong>Refer java class source</strong>  </p>
  
  <pre><code>public class First_index extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
      Button btn1 = (Button) findViewById(R.id.button_parent);
      btn1.setOnClickListener(new View.OnClickListener() {
  
          public void onClick(View view) {
             Intent myIntent = new Intent(view.getContext(), Index_parent.class);
             startActivityForResult(myIntent, 0);
            }
  });
  </code></pre>
  
  <p>This is for page switching right?  </p>
  
  <hr>
  
  <p><strong>AND THIS SOURCE IS FOR TABHOSTING</strong>  </p>
  
  <pre><code>    public class Parent_concpt extends TabActivity {  
          /** Called when the activity is first created. */  
          @Override  
          protected void onCreate(Bundle savedInstanceState) {  
              super.onCreate(savedInstanceState);  
              setContentView(R.layout.main3);  
  
              TabHost tabHost = getTabHost();
  
              // Tab for Attendance
              TabSpec pho = tabHost.newTabSpec("Attendance");
              // setting Title and Icon for the Tab
              pho.setIndicator("Attendance",getResources().getDrawable(R.drawable.icon_att_parent));
          Intent phoIntent = new Intent(this, Att_parents.class);
          pho.setContent(phoIntent);
  
          // Tab for Marks
          TabSpec mrk = tabHost.newTabSpec("Achievement");
          mrk.setIndicator("Achievement",     getResources().getDrawable(R.drawable.icon_achieve_parents));
          Intent mrkIntent = new Intent(this, Achieve_parents.class);
          mrk.setContent(mrkIntent);
  
          // Tab for Fee
          TabSpec fees = tabHost.newTabSpec("Fee details");
              fees.setIndicator("Fee details",getResources().getDrawable(R.drawable.icon_fee_details));
          Intent feesIntent = new Intent(this, Feedet_parents.class);
          fees.setContent(feesIntent);
  
          // Adding all TabSpec to TabHost
          tabHost.addTab(pho);
          tabHost.addTab(mrk);
          tabHost.addTab(fees);}}
  </code></pre>
  
  <p><strong>My ambigution is,i guess only the problem is on Manifest.xml file.IS THERE ANY PERMISSIONS AVAILABLE TO MENTION FOR EVERY ACTIVITY?</strong></p>
  
  <hr>
  
  <p><strong>Refer Manifest.xml source</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.android.demo.student"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
  
          &lt;activity android:name=".First_index"
                    android:label="@string/app_name"&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;activity android:name=".Index_parent"&gt;&lt;/activity&gt;
  
  
          &lt;activity android:name=".Index_parent"
                    android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN1" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".Parent_concpt"&gt;&lt;/activity&gt;
  
          &lt;activity android:name=".Parent_concept"
                    android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN3" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
           &lt;!--  Att_parents --&gt;
           &lt;activity android:name=".Att_parents" /&gt;
  
           &lt;!--  Achieve_parents --&gt;
           &lt;activity android:name=".Achieve_parents" /&gt;
  
           &lt;!--  Feedet_parents --&gt;
           &lt;activity android:name=".Feedet_parents" /&gt;
  
  
          &lt;activity android:name=".Index_principal"
                    android:label="@string/app_name"&gt;
               &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN2" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
           &lt;/activity&gt;&lt;activity android:name=".Princy_concept"&gt;&lt;/activity&gt;
  
            &lt;activity android:name=".Princy_concept"
                    android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN7" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
           &lt;/activity&gt;
  
           &lt;!--  Att_principal Activity --&gt;
           &lt;activity android:name=".Att_principal" /&gt;
  
           &lt;!--  Perform_principal Activity --&gt;
           &lt;activity android:name=".Perform_principal" /&gt;
  
           &lt;!--  Coll_principal Activity --&gt;
           &lt;activity android:name=".Coll_principal" /&gt;
  
           &lt;!--  Xpense_principal Activity --&gt;
           &lt;activity android:name=".Xpense_principal" /&gt;
  
           &lt;/application&gt;
      &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>NOTE :</strong> I have perfectly mentioned each and every class and layout's file name perfectly.</p>
  
  <p>Please refer my logcat here
  <strong>LOGCAT</strong></p>
  
  <pre><code>05-21 12:13:16.013: W/KeyCharacterMap(274): No keyboard for id 0
  05-21 12:13:16.013: W/KeyCharacterMap(274): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
  05-21 12:13:19.843: D/AndroidRuntime(274): Shutting down VM
  05-21 12:13:19.843: W/dalvikvm(274): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
  05-21 12:13:19.853: E/AndroidRuntime(274): FATAL EXCEPTION: main
  05-21 12:13:19.853: E/AndroidRuntime(274): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.demo.student/com.android.demo.student.Princy_concept}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.os.Handler.dispatchMessage(Handler.java:99)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.os.Looper.loop(Looper.java:123)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread.main(ActivityThread.java:4627)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at java.lang.reflect.Method.invokeNative(Native Method)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at java.lang.reflect.Method.invoke(Method.java:521)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at dalvik.system.NativeStart.main(Native Method)
  05-21 12:13:19.853: E/AndroidRuntime(274): Caused by: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.TabActivity.onContentChanged(TabActivity.java:105)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.Activity.setContentView(Activity.java:1647)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at com.android.demo.student.Princy_concept.onCreate(Princy_concept.java:16)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  05-21 12:13:19.853: E/AndroidRuntime(274):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  05-21 12:13:19.853: E/AndroidRuntime(274):  ... 11 more
  </code></pre>
  
  <p>Thanks for your help!</p>