I'm creating a new Android application in which i'm using two dialog boxes that contain two buttons each.
At first, I had no problems with the buttons included in the first box, but with the second, I had an annoying one:
Every time I implement the method public void onClick(View v)
the program compiles just fine, but when I launch the application a message appear:
"Unfortunately app_name has stopped".
I thought that there was a problem with the implementation inside that method, but after testing it, I've discovered that if I change the id of the button into another one that isn't related to the layout of the second dialog box, the program works just fine.