Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:00:55+00:00 2026-05-25T11:00:55+00:00

I would like to detect when user touches screen constantly for 5 seconds. No

  • 0

I would like to detect when user touches screen constantly for 5 seconds. No things like onLongTouch() are taken into consideration. Mechanism should be transparent, because I’m overriding onTouchEvent() to change Views in ViewFlipper.

Should I do it manually by creating new thread that would be timing a touch?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:00:57+00:00Added an answer on May 25, 2026 at 11:00 am

    You can start a timer when the MotionEvent is MotionEvent.ACTION_DOWN and stop it when the event is MotionEvent.ACTION_UP.
    This is the time the user had his finger on the screen (including dragging).
    If you want to restart the timer on dragging, check for ACTION_MOVE and restart the timer. But I don’t recommend doing that since these events might be thrown even if the user accedintly moved his hand very slightly while holding his finger down on the screen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIImagePickerController subclass, and I would like to detect when the user
I would like to detect whether the user has pressed Enter using jQuery. How
What I would like to do is detect if a user is actively using
I am using phonegap for build android apps. I would like to detect user's
I would like to detect (via c++) what the user has chosen for text
In an Android app I'm making, I would like to detect when a user
I would like to detect if a user has cookies turned off and redirect
I would like to detect dropdown lists on my page that the user didn't
Background: I would like to automatically detect the language written by the user in
I would like to detect whether the OS I'm compiling on is Windows. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.