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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:07:59+00:00 2026-05-12T07:07:59+00:00

I have 2 questions about android TrackBall Event. I appreciate if you can help

  • 0

I have 2 questions about android TrackBall Event. I appreciate if you can help me with them:

  1. Can I detect the speed of TrackBall event? like in Fling, I can detect a ‘big’ fling vs a ‘small’ fling. Can I fling via the track ball?

  2. Why TrackBall Event always follow by Key left/right events? To me, they seem duplicate.

For example, I put debug statement in both dispatchTrackballEvent() and dispatchKeyEvent(), and i switch to ‘track ball’ mode in emulator. When I move my mouse around, I always see dispatchTrackballEventevent with dispatchKeyEvent.

Thank you for any help.

  • 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-12T07:07:59+00:00Added an answer on May 12, 2026 at 7:07 am

    Answers to your doubts:

    1. TrackBall events in android send you a MotionEvent object (docs), from that object you can read historical info that let’s you make a delta of movement, that way you can know with which intensity the ball was rolled.

    2. That is caused because you are not telling the system that you have consumed the event in your onTrackBallEvent handler (docs), if you don’t return true the event is then raised as a d-pad key event.

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

Sidebar

Related Questions

I have read many questions about Android, J2ME and RecordStore , but I still
So I have a few questions about implementing the Android action bar. Up to
Possible Duplicate: Detect multitouch with Ontouch listener Android I have a question about detecting
I have questions about System.Threading.ThreadStart Class : where can I find its specifications (
I have some questions about android ui api. Give a example, that I want
I have some questions about the cache directory in android. Does anyone knows the
I have a couple of questions about connectivity on Android, if anyone has any
i am building an android application but i have some questions about the memory
I'm aware that questions have been asked and answered about the Android soft keyboard
I'm brand new to Android dev and have some n00b questions about AVD. 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.