title: Could not execute method of the activity Android
body: <p>I have the following button:</p>
  
  <pre><code>    &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/btn_create_user"
      android:id="@+id/btn_create_user"
      android:onClick="onClickCreateUser"
  
      android:layout_alignParentBottom="true"
      android:background="@color/btn_create_user"
      android:layout_alignLeft="@+id/btn_login"
      android:layout_alignStart="@+id/btn_login"
      android:layout_marginBottom="23dp"
      android:layout_alignRight="@+id/btn_login"
      android:layout_alignEnd="@+id/btn_login" /&gt;
  </code></pre>
  
  <p>with the following onclick function:</p>
  
  <pre><code>    public void onClickCreateUser(View v){
      Intent i = new Intent("dk.anapp.notebox.activity_createUser");
      startActivity(i);
  }
  </code></pre>
  
  <p>When i press the button i get the following error:</p>
  
  <pre><code>02-12 18:20:53.526    1598-1598/dk.anapp.notebox E/AndroidRuntime﹕ FATAL EXCEPTION: main
  java.lang.IllegalStateException: Could not execute method of the activity
          at android.view.View$1.onClick(View.java:3044)
          at android.view.View.performClick(View.java:3511)
          at android.view.View$PerformClick.run(View.java:14105)
          at android.os.Handler.handleCallback(Handler.java:605)
          at android.os.Handler.dispatchMessage(Handler.java:92)
          at android.os.Looper.loop(Looper.java:137)
          at android.app.ActivityThread.main(ActivityThread.java:4424)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:511)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
          at dalvik.system.NativeStart.main(Native Method)
   Caused by: java.lang.reflect.InvocationTargetException
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:511)
          at android.view.View$1.onClick(View.java:3039)
              at android.view.View.performClick(View.java:3511)
              at android.view.View$PerformClick.run(View.java:14105)
              at android.os.Handler.handleCallback(Handler.java:605)
              at android.os.Handler.dispatchMessage(Handler.java:92)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:4424)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
              at dalvik.system.NativeStart.main(Native Method)
   Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=dk.anapp.notebox.activity_createUser }
          at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
          at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
          at android.app.Activity.startActivityForResult(Activity.java:3190)
          at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:839)
          at android.app.Activity.startActivity(Activity.java:3297)
          at dk.anapp.notebox.Login.onClickCreateUser(Login.java:74)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at android.view.View$1.onClick(View.java:3039)
              at android.view.View.performClick(View.java:3511)
              at android.view.View$PerformClick.run(View.java:14105)
              at android.os.Handler.handleCallback(Handler.java:605)
              at android.os.Handler.dispatchMessage(Handler.java:92)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:4424)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>I searched SO but the only answer i could find is for people who forgot to declare the class in the manifest</p>
  
  <p>here is my manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="9"
      android:targetSdkVersion="18" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  &lt;application
      android:name="dk.anapp.notebox.Mediator"
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="dk.anapp.notebox.Login"
          android:label="@string/title_activity_login" &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="dk.anapp.notebox.SoloActivity"
          android:label="@string/title_activity_solo" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="dk.anapp.notebox.SoloActivity" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="dk.anapp.notebox.SpashScreen"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:label="@string/title_activity_spash_screen"
          android:theme="@style/FullscreenTheme" &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="dk.anapp.notebox.SpashScreen"
          android:label="@string/title_activity_spash_screen" &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="dk.anapp.notebox.MyGroups"
          android:label="@string/title_activity_my_groups" &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="dk.anapp.notebox.activity_createUser"
          android:label="@string/title_activity_activity_create_user" &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;
  </code></pre>
  
  <p></p>
  
  <p>So what am i doing wrong?</p>