I want to start a new activity when i press the button, but when i press it my app crashes!
Where is the Problem?
Here is the code!
public void onClickButtonListener() {
button_play = (Button)findViewById(R.id.play_button);
button_play.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(".SecPage");
startActivity(intent);
}
}
);
}