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 3669474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:14:52+00:00 2026-05-19T02:14:52+00:00

I have a simple Gesture Detector that is passed all MotionEvents in my Views

  • 0

I have a simple Gesture Detector that is passed all MotionEvents in my Views onTouchEvent() method, per this tutorial:

http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

A sample of my code, which draws a circle around the finger when it touches the screen:

@Override
public boolean onTouchEvent(MotionEvent ev) {
    // send the touch event to the gesture detector
    if (mBuildupDetector.onTouchEvent(ev)) {
        Log.d(LOG_TAG, "onTouchEvent(): Gesture consumed.");
    } else {
        Log.d(LOG_TAG, "onTouchEvent(): Gesture not consumed.");
    }
    switch (curAction) {
        case MotionEvent.ACTION_DOWN: {
                  drawCircle();
            }
    }
}

And then a private sub-class for the gesture detector:

private class BuildupListener extends GestureDetector.SimpleOnGestureListener {
    @Override
    public boolean onDown(MotionEvent ev) {
        Log.d("BuildupListener", "onDown(): Triggered.");
        return true;
    }
}

So, when the user touches the screen, generating a motion event, I am getting a confimation that the gesture was indeed ‘consumed’, and I can change the diameter of the circle in the onDown method of the GestureDectector. However, no logging is written out from onDown, even though it appears to be called and executed.

Am I missing something basic about logging and how logging can happen from inside private sub-classes, or gesture detectors?

Thanks,

Paul

  • 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-19T02:14:53+00:00Added an answer on May 19, 2026 at 2:14 am

    Found the issue, it was an error with LogCat I believe. Dropping the LogCat tab from Eclipse and re-enabling it resulted in all the logging being shown as expected.

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

Sidebar

Related Questions

I have a simple swipe gesture that I want to be very low priority.
I have a simple app that has a set of coloured views, one red,
I have a simple method that checks for the superview of a view, and
This seems simple enough, but I'm stuck. I have a View Controller that respondes
I have simple php validation form that is halfway working. If you leave the
I have simple win service, that executes few tasks periodically. How should I pass
Simple problem: With the XML layout shown below, I have some views wrapped in
CODE I have some code that adds a UILongPressGestureRecognizer gesture recognizer called _recognizer to
I have simple example: function File(name) { this.name = name this.text = null }
I have a simple application with two views, one is a TableView and the

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.