geopoints를 업데이트하기 위해 MapView에서 onTouchEvent를 구현하려고하지만 화면을 터치 할 때 ACTION_UP 만 잡으면 3 번 실행됩니다. 이 조건에서 내 코드를 한 번 실행하는 방법?Android OnTouchEvent가 3 번 발생합니다.
@Override
public boolean onTouchEvent(MotionEvent event, MapView mapView) {
int action = event.getAction();
if (action == MotionEvent.ACTION_UP) {
Log.e("Touch", Integer.toString(event.getAction()));
//All 3 fires has index 1 that concern to ACTION_UP
//Below will be AsyncTask call
}
return false;
}
감사합니다. – user1376885