Android: Button OnClickListener does not working
I have created this activity that should allow me to open a new activity once a button has been pressed. However the OnClickListener does not seem to be working. Am I declaring the buttons wrong? Can someone me out? public class Menu extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu); View loginbutton = findViewById(R.id.butlogin); loginbutton.setOnClickListener(this); View recordbutton = findViewById(R.id.butrecordts); recordbutton.setOnClickListener(this); View viewbutton = findViewById(R.id