Unfortunately, the Agenda application stopped. I hope you can help me [closed]

0

I am programming in android studio, I put a Button and this will take me to another activity, the problem is that pressing the button I get an error: Unfortunately the Agenda application stopped. I hope you can help me.

    
asked by Spartan456 11.04.2017 в 01:34
source

1 answer

0

You defined android:OnClick from the layout, remember that in this way you do not have to add a listener if not the method you defined for example:

android:OnClick=miMetodo

The declared method must receive the view as a parameter to work correctly:

public void miMetodo(View view){
...
...
}
    
answered by 11.04.2017 / 04:13
source