title: Google Fit Workout/Exercise reader
body: <p>I have tried</p>
  <pre><code>val dataRequest = DataReadRequest.Builder()
                      .aggregate(DataType.TYPE_DISTANCE_DELTA)
                      .aggregate(DataType.TYPE_CALORIES_EXPENDED)
                      .aggregate(DataType.TYPE_HEART_RATE_BPM)
                      .read(DataType.TYPE_WORKOUT_EXERCISE)
                      .read(DataType.AGGREGATE_MOVE_MINUTES)
                      .read(DataType.TYPE_MOVE_MINUTES)
                      .setTimeRange(start2B , end2B , TimeUnit.MILLISECONDS)
                      .enableServerQueries()
                      .bucketByActivitySegment(1, TimeUnit.MINUTES)
                      .build()
  
   Fitness.getHistoryClient(this, account)
                      .readData(dataRequest)
                      .addOnSuccessListener {
                           for (bucket in it.buckets) {
                              for (data in bucket.dataSets) {
                                  for (point in data.dataPoints) {
                                      when (point.dataType) {
                                          DataType.AGGREGATE_DISTANCE_DELTA   -&gt; distanceTotal.add(   point.getValue(Field.FIELD_DISTANCE).asFloat()          )
                                          DataType.TYPE_HEART_RATE_BPM        -&gt; heartRateTotal.add(  point.getValue(Field.FIELD_BPM).asFloat()               )
                                          DataType.TYPE_CALORIES_EXPENDED     -&gt; caloriesTotal.add(   point.getValue(Field.FIELD_CALORIES).asFloat()          )
                                          DataType.TYPE_WORKOUT_EXERCISE      -&gt; exerciseNames.add(  &quot;[${point.getValue(Field.FIELD_EXERCISE).asString()}]   &quot;)
                                          DataType.TYPE_MOVE_MINUTES          -&gt; Log.i(&quot;GOOGLE-FIT&quot;, &quot;Move Minutes          $point     &quot;)
                                          DataType.AGGREGATE_MOVE_MINUTES     -&gt; Log.i(&quot;GOOGLE-FIT&quot;, &quot;Moving Mins  Count    $point     &quot;)
                                      }
                                  }
                                  Log.i(&quot;GOOGLE-FIT&quot;, &quot;Google Daily  DATE Read      INFO       A: $distanceTotal          B: $heartRateTotal          C: $caloriesTotal          D: $exerciseNames           &quot;)
  
                              }
                          }
  </code></pre>
  <p>I get calories and distance sometimes,  but never exerciseName
  What is the correct way to access exercise/workout  recorded in Google Fit?</p>
  <p>Does anyone know of a tutorial/example showing how to get workout data from the Google fit API?</p>
  <p>Where can one get google git API support?</p>
  <p>thanks in advance</p>