I have a mapView and I trying to capture an event when I hold my finger on the map. The event similar to this one is “onTouchListener” but I want to hold the finger a couple of seconds before the event rise.
Thanks for your help.
Best,
David.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have use threads and the onTouchEvent(MotionEvent event). As the OnLongClickListener is for a click event and I want to keep it pressed. When I touch the screen a boolean variable is true, and a thread start counting until a limit. If I move my finger then event.ACTION_MOVE fires, the boolean variable became false and the Thread stops.