I placed Significant Motion Sensor code from https://developer.android.com/guide/topics/sensors/sensors_motion#sensors-motion-significant in my activity. But the app crashes as soon as it is launched. What is the correct way to implement Significant Motion Sensor?
What is the correct way to implement Significant Motion Sensor?
302 views Asked by Al117 At
1
If
returns null it's pretty likely that your device does not support this sensor. You should consider to use Accelerator directly as alternative.