*** Activity 1
public void onClick(View v) {
switch (v.getId()) {
case R.id.act1_next_btn:
Intent myIntent = new Intent(getBaseContext(), act2.class);
startActivity(myIntent);
break;
}
}
*** Activity 2
public void onClick(View v) {
switch (v.getId()) {
case R.id.act2_back_btn:
finish();
break;
}
}
댓글
댓글 쓰기