title: Activity not launching even after I add it in AndroidManifest file
body: <p>I'm new to Android. I read similar posts but I cannot solve my problem.
  I added all my activities in androidManifest file, but I cannot move from Second Activity to ThirdActivity using Intent.  </p>
  
  <h2>Here is MainActivity.java</h2>
  
  <pre><code>package com.mobi.crazycalc;
  
    import android.os.Bundle;
    import android.os.Handler;
    import android.app.Activity;
    import android.content.Intent;
    import android.view.Menu;
  
    public class MainActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      new Handler().postDelayed(new Runnable() {
  
          @Override
          public void run() {
              // TODO Auto-generated method stub
              Intent in= new Intent(MainActivity.this,SecondActivity.class);
              MainActivity.this.startActivity(in);
              MainActivity.this.finish();
          }
      }, 1000);
  }
  
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
   }
  
   }
  </code></pre>
  
  <h2>here is SecondActivity.java</h2>
  
  <pre><code>package com.mobi.crazycalc;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  
  public class SecondActivity extends Activity {
  EditText name1;
  EditText name2;
  Button goButton;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_second);
      name1= (EditText) findViewById(R.id.name1);
      name2=(EditText) findViewById(R.id.name2);
      goButton= (Button) findViewById(R.id.gobutton);
      final String hisName=name1.getText().toString().trim();
      final String herName=name2.getText().toString().trim();
      goButton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
              // TODO Auto-generated method stub
  
              Love lv=new Love();
              int result=lv.getLovePer(hisName, herName);
              Intent in=new Intent(SecondActivity.this,ThirdActivity.class);
              in.putExtra("Result", result);
              startActivity(in);
  
          }
      });
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.second, menu);
      return true;
       }
  
      }
  </code></pre>
  
  <h2>Here is ThirdActivity.java</h2>
  
  <pre><code>package com.mobi.crazycalc;
  
  import java.util.Random;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.widget.TextView;
  
  public class ThirdActivity extends Activity {
   TextView meter;
   Button goBackButton;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_third);
      meter = (TextView) findViewById(R.id.meter);
      goBackButton = (Button) findViewById(R.id.gobackbutton);
      goBackButton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
              // TODO Auto-generated method stub
              Intent in=new Intent(ThirdActivity.this,SecondActivity.class);
              startActivity(in);
          }
      });
      Random ran= new Random();
      for(int i=0;i&lt;100;++i)
      {
          int ranNo=ran.nextInt(100);
          meter.setText(ran.toString());
      }
  Bundle bund=getIntent().getExtras();
  int res=bund.getInt("Result");
  
      meter.setText(res);
  
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.third, menu);
      return true;
  }
  
  }
  </code></pre>
  
  <h2>this is the manifest file-</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mobi.crazycalc"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="14"
      android:targetSdkVersion="17" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="com.mobi.crazycalc.MainActivity"
          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="com.mobi.crazycalc.SecondActivity"
          android:label="@string/title_activity_second" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.mobi.crazycalc.ThirdActivity"
          &gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>activity-second.xml:</p>
  
  <pre><code>RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#e52850"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context=".SecondActivity" &gt;
  
  &lt;EditText
      android:id="@+id/name1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="57dp"
      android:ems="10"
      android:hint="@string/name1Edittext"
      android:textColor="@color/almond" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  
  &lt;Button
      android:id="@+id/gobutton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/name2"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="30dp"
      android:background="@android:color/transparent"
      android:text="@string/buttontext"
      android:textColor="@color/aeroBlue" /&gt;
  
  &lt;EditText
      android:id="@+id/name2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/name1"
      android:layout_below="@+id/name1"
      android:layout_marginTop="41dp"
      android:ems="10"
      android:hint="@string/name2Edittext"
      android:textColor="@color/almond" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>