title: Google Fit API Activity History
body: <p>I have an app that integrates with Google Fit. One of the requirements is display a users favorite activity (most frequent) i.e.: bicycling. I assume it would be done through the <strong>History</strong> API, but I'm not sure how to gather all activities so I can calculate the most common one. </p>
  
  <p>Anybody have any idea how to go about doing that?</p>