Check whether a sensor is supported

Check whether a sensor is supported

BY 17 Jul 2015 Native Code Snippet
Here is how you can check whether a sensor of a specific type is supported on a device. In this example we check for an accelerometer.
Written by