I keep getting this error message and I am not sure what I am supposed to do.
The method setOnClickListener(new View.OnClickListener(){}) is undefined for
setOnClickListener(new View.OnClickListener(){})
Try:
ImageButton imageButton1 = (ImageButton) findViewById(R.id.imageButton1); imageButton1.setOnClickListener ....
ImageButton is the name of the class, imageButton1 the name of your instance of the class.