0

I'm running Google's trigger sensor demo on a Samsung Galaxy S5. The documentation and AOSP notes for the significant motion sensor don't provide much insight -- walking is mentioned but not by how much.

I've tried shaking my phone and walking around my house with it, and I can't get the event to trigger. I have been able to confirm that the sensor exists and the listener is being registered, so I'm pretty sure it's just not being triggered properly.

Is this sensor something that's useful to detect when a phone is picked up from a desk or jostled around in a purse, or is it more for when it's traveled several meters? Is the behavior consistent across phones?

Zach Rattner
  • 20,745
  • 9
  • 59
  • 82
  • Check [this](http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_SIGNIFICANT_MOTION), it's a wake up sensor. – Strider Jun 11 '15 at 06:18
  • Thanks @Strider, but that shouldn't mean the AP has to be asleep for it to trigger, does it? – Zach Rattner Jun 11 '15 at 06:33
  • That's correct, check [this](http://developer.android.com/reference/android/hardware/Sensor.html#isWakeUpSensor%28%29) – Strider Jun 11 '15 at 07:40
  • and [this](http://developer.android.com/reference/android/hardware/TriggerEvent.html) for the trigger, and a better explanation [here](http://stackoverflow.com/questions/24567399/detecting-significant-device-motion-on-android) – Strider Jun 11 '15 at 07:41

0 Answers0