title: How to get heart rate in background using google fit?
body: <p>I am trying to create an android application based on Google fit.</p>
  
  <p>I am successfully getting Heart Rate from Raw Sensor Data type using <code>Sensor API</code> in Android Activity.  What I would like to do is get Heart rate in the background.</p>
  
  <p>How do I do that?
  Implement an android service or Google Fit Recording API?</p>