明确指定要启动的Activity
button_1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//参数1:上下文,参数2:目标活动
Intent intent = new Intent(FirstActivity.this,SecondActivity.class);
startActivity(intent);
}
});