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 on how to query the fitness data between two dates and get fitness data that is aggregated by day. We will let the user select the data type from the spinner drop-down, and select the start and end dates and the time picker. Users can also request...
Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
France
Germany
Great Britain
Greece
Hungary
India
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Russia
Singapore
Slovakia
Slovenia
South Africa
South Korea
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United States