If I have method in second Activity class I have crash:
09-20 13:10:03.130 8552-8552/tk.mikigal.religia E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: tk.mikigal.religia, PID: 8552
java.lang.IllegalStateException: Could not find a method testxd(View) in the activity class tk.mikigal.hds.MainActivity for onClick handler on view class android.support.v7.widget.AppCompatButton with id 'button3'
at android.view.View$1.onClick(View.java:3956)
at android.view.View.performClick(View.java:4640)
at android.view.View$PerformClick.run(View.java:19421)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5476)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchMethodException: testxd [class android.view.View] ...
Code of other activity class: http://pastebin.com/jhELWSc7 I put code on pastebin beacouse its too long to paste it here. I use XML android:onClick