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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:21:05+00:00 2026-05-22T18:21:05+00:00

I want to detect a movement like a Moo Box, I reverse the phone

  • 0

I want to detect a movement like a Moo Box, I reverse the phone and when I turn it back it fire an action…
For Android.
What is the best way

It is possible to custom an event listenner

  • 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-22T18:21:06+00:00Added an answer on May 22, 2026 at 6:21 pm

    Did you look at SensorManager?

    There’s a very good tutorial here: http://www.ibm.com/developerworks/opensource/library/os-android-sensor/

    Update after question editing:

    SensorEventListener is an interface, not a class, so you are forced to implement your code in the two callbacks:

    abstract void   onAccuracyChanged(Sensor sensor, int accuracy) // Called when the accuracy of a sensor has changed.
    abstract void   onSensorChanged(SensorEvent event) // Called when sensor values have changed. 
    

    You will be more interested in the second one.

    Please, take a look at the tutorial I posted above. Half-way through there is an accelerometer example:

    Sensor example

    The sample application simply monitors changes to the orientation and accelerometer sensors (see Download for the source code). When changes are received, the sensor values are displayed on the screen in TextView widgets. Figure 1 shows the application in action.

    You will have to analyze the movement pattern you want to detect and create a listener that reacts accordingly.

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

Sidebar

Related Questions

I want to detect the gallery view slide to next item in Android like
I want to detect and replace tab characters in a bit of HTML like
I want to detect when a combination like Ctrl-C is pressed in a WPF
I would like to detect mouse movement while the left button is pressed. I'm
Is there any way to detect to which direction the phone was shaked? For
I want to detect iPhone's common settings like settings about Mail, Contacts and Calendar.
I want to detect whether a headset is inserted or not in my android
I want to detect when an application in android has finished installation without using
I want to detect Back Key event in my CustomView (e.g., EditText). In many
I want to detect cases where an Ajax call is in progress and then

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.