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

  • SEARCH
  • Home
  • 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 8669601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:30:56+00:00 2026-06-12T18:30:56+00:00

I am writing a Quiz. I have four buttons: answer options, and i am

  • 0

I am writing a Quiz. I have four buttons: answer options, and i am using Android multitouch! hack anyone? code snippet to disable multitouch.

But the buttons seem to work only if you tap on them very quickly.

If you slowly press the button and then release it, button only blinks, and nothing happens. Could someone help me figure out how to fix this?

  • 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-06-12T18:30:57+00:00Added an answer on June 12, 2026 at 6:30 pm

    I have used @JQCorreia hack and overrided his “onTouchEvent” like this:

            @Override
            public boolean onTouchEvent(MotionEvent event){
            int action = event.getAction() & MotionEvent.ACTION_MASK;
    
            switch (action) {
            case MotionEvent.ACTION_DOWN:
                for(View v: views){
                    Rect r = new Rect();
                    v.getGlobalVisibleRect(r);
                    if (event.getX() > r.left && event.getX() < r.right
                            && event.getY() > r.top
                            && event.getY() < r.bottom) {
                        v.onTouchEvent(event);
                    }
                }
                break;
            case MotionEvent.ACTION_UP:
                for(View v: views){
                    Rect r = new Rect();
                    v.getGlobalVisibleRect(r);
                    if (event.getX() > r.left && event.getX() < r.right
                            && event.getY() > r.top
                            && event.getY() < r.bottom) {
                        v.onTouchEvent(event);
                    }
                }
                break;
            case MotionEvent.ACTION_MOVE:
                for(View v: views){
                    Rect r = new Rect();
                    v.getGlobalVisibleRect(r);
                    if (event.getX() > r.left && event.getX() < r.right
                            && event.getY() > r.top
                            && event.getY() < r.bottom) {
                    }
                    else{
                        v.onTouchEvent(event);
                    }
                }
                break;
            }
            return true;
        }
    

    That works for me.

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

Sidebar

Related Questions

I am writing a quiz application. All questions and answer options are taken from
I'm writing a quiz application using php / jquery. The answer selections are contained
I'm writing a quiz app using phonegap & jquery. I have a number of
I am writing a multiple choice quiz using AS3. And, I want to display
I am in the process of writing a web-based quiz application using PHP and
afternoon, I am using the following countdown for a quiz app i am writing.
I am writing a jquery phonegap quiz app and have a number of categories
I'm writing a quiz program using PHP and a bit of Javascript. The questions
Hey I'm writing a quiz application for android. Some of the questions asked require
I am writing a webpage for online quiz. The basic requirement I have 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.