내가에서 onCreate 방법이 코드가 누를 때 나는 새로운 활동로드 정확하게 이미지를 터치하면onTouch은 다시 버튼을 트리거
ImageView iv01 = (ImageView)findViewById(R.id.hexagon01);
iv01.setOnTouchListener(new OnTouchListener(){
public boolean onTouch(View view, MotionEvent event) {
Intent intent = new Intent(view.getContext(), ChoiceActivity.class);
startActivity(intent);
return true;
}
});
합니다. 나는 뒤로 버튼을 눌러 되돌아 갈 수있다. 그러나 다시 버튼을 눌러 앱을 닫으면 onTouch 이벤트가 다시 시작되어 다시 활동을로드합니다. 어떻게 피할 수 있습니까?
감사합니다.