Application crashes at the startup. [closed]

You declared your buttons like this:

b1.findViewById(R.id.button1);
        b2.findViewById(R.id.button2);
        b3.findViewById(R.id.button3);
        b4.findViewById(R.id.button4);
        b5.findViewById(R.id.button5);
        b6.findViewById(R.id.button6);
        b7.findViewById(R.id.button7);
        b8.findViewById(R.id.button8);
        b9.findViewById(R.id.button9);

Replace that with:

b1=(Button)findViewById(R.id.button1);

And other views (b2,b3.., rez1,rez2..) like that.

Leave a Comment