Time for action – getting history fitness data using the History API
We have seen in the previous section how to request the automated collection of fitness sensor data, now in this section we will learn how to retrieve all the collected data from the Google fitness store. The History API not only allows your application to retrieve fitness sensor data, but it also allows your app to write and delete fitness data. Your application can only delete the fitness data created by your own app. The History API provides an efficient way of querying fitness data and also supports the batch importing of data. The History API is part of Google Play services and follows the same process to connect as Sensors API or Recording API. In our example, we will focus ...
Get Android Sensor Programming By Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.