title: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.application.bpjs.AnathorActivity }
body: <p>i have problem with my program, i want to link to diffrent layout, but my code not work.</p>
  
  <p>this is my code</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>package com.application.bpjs;
  
  //import android.support.v7.app.ActionBarActivity;
  import android.app.Activity;
  //import android.content.DialogInterface.OnClickListener;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.view.View.OnClickListener;
  
  public class MainActivity extends Activity {
  Button imgBtnKlinik;
  Button imgBtnPuskesmas;
  Button imgBtnRS;
  
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_home);
          //imgBtnKlinik = (Button)findViewById(R.id.klinik);
          imgBtnPuskesmas = (Button)findViewById(R.id.puskesmas);
          imgBtnRS = (Button)findViewById(R.id.rs);
  
          OnClickListener listener = new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  Intent intent = new Intent("com.application.bpjs.AnathorActivity");
                  startActivity(intent);
              }
          };
          imgBtnKlinik = (Button)findViewById(R.id.klinik);
          imgBtnKlinik.setOnClickListener(listener);
      }
  
      @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;
      }
  
      /**@Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
          if (id == R.id.action_settings) {
              return true;
          }
          return super.onOptionsItemSelected(item);
      }*/
  }
  </code></pre>
  
  <p>AndroidManifest.xml</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.application.bpjs"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="16" /&gt;
      &lt;uses-feature
          android:glEsVersion="0x00020000"
          android:required="true" /&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.application.bpjs.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.application.bpjs.AnathorActivity"
              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.DEFAULT"/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>AnathorActivity.java</p>
  
  <pre><code>package com.application.bpjs;
  
  import java.security.PublicKey;
  
  import android.app.Activity;
  import android.os.Bundle;
  public class AnathorActivity extends Activity{
      protected void OnCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
      }
  }
  </code></pre>
  
  <p>that's my code, the problem with my code is </p>
  
  <pre><code>OnClickListener listener = new OnClickListener() {
  
   @Override
   public void onClick(View v) {
   // TODO Auto-generated method stub
   Intent intent = new Intent("com.application.bpjs.AnathorActivity");
   startActivity(intent);
  </code></pre>
  
  <p>my eror</p>
  
  <pre><code>12-09 23:33:27.012: E/AndroidRuntime(32299): FATAL EXCEPTION: main
  12-09 23:33:27.012: E/AndroidRuntime(32299): Process: com.application.bpjs, PID: 32299
  12-09 23:33:27.012: E/AndroidRuntime(32299): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.application.bpjs/com.application.bpjs.AnathorActivity}; have you declared this activity in your AndroidManifest.xml?
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Activity.startActivityForResult(Activity.java:3424)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Activity.startActivityForResult(Activity.java:3385)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Activity.startActivity(Activity.java:3627)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.Activity.startActivity(Activity.java:3595)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at com.application.bpjs.MainActivity$1.onClick(MainActivity.java:37)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.view.View.performClick(View.java:4445)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.view.View$PerformClick.run(View.java:18446)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.os.Handler.handleCallback(Handler.java:733)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.os.Handler.dispatchMessage(Handler.java:95)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.os.Looper.loop(Looper.java:136)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at android.app.ActivityThread.main(ActivityThread.java:5111)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at java.lang.reflect.Method.invokeNative(Native Method)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at java.lang.reflect.Method.invoke(Method.java:515)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
  12-09 23:33:27.012: E/AndroidRuntime(32299):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>thanx</p>