I'm looking for the difference between android.hardware.Sensor
and Fitness.SENSORS_API
in term of performance, simplicity.
Because I saw on Sensor API doc:
The API exposes data sources from hardware sensors in the local device and in companion devices. It also exposes data sources from applications. Data sources can be queried via findDataSources(GoogleApiClient, DataSourcesRequest)
After searching on Google, I saw that there exist android.hardware.Sensor.
So my question is, what is the difference between these two in terms of performance, simplicity, and other parameters?
Is there an existing better way to use a sensor in order to record the steps or activity recognition for example?
Have a good day guys!