내 신청서에는 7 가지 활동이 있습니다. 첫 번째 활동에서 나가기 버튼이 있습니다. 처음에 나가기 버튼을 클릭하면 잘 돌아갑니다. 그러나 두 번째, 세 번째 ...... 활동에있을 때 첫 번째 활동에 직접 들어가면 나가기 버튼이 이전에 나를 데려갔습니다. 활동 .....신청서를 닫는 방법
Button Exit = (Button) findViewById(R.id.close);
Exit.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
finish();
System.exit(1);
}
});
[응용 프로그램 종료 - 그게 싫은가요?] (http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon) – adatapost