The movement is usually a reflection of direct user input (for example, a user steering aĬar in a game or a user controlling a ball in a game), but it can also be a reflection of the Motion sensors are useful for monitoring device movement, such as tilt, shake, rotation, or Depending on the device, these software-based sensors can derive theirĭata either from the accelerometer and magnetometer or from the gyroscope. Variable because they often rely on one or more hardware sensors to derive theirĭata. The availability of the software-based sensors is more Most Android-powered devices have an accelerometer, and many now include a The accelerometer and gyroscope sensors are always hardware-based. The gravity, linear acceleration, rotation vector, significant motion, stepĬounter, and step detector sensors are either hardware-based or The sensors' possible architectures vary by sensor type: The Android platform provides several sensors that let you monitor the motion Migrate to Google Play services location and context APIs.