Google Fit Android SDK - get a list of user's activity with time and the related value

I'm trying to query Google Fit Android API, in order to get a list of a user's activities in a time period WITH the related values per activity (e.g. step count for WALKING, meters for CYCLING, etc). The closest any answer comes to my requirement is https://stackoverflow.com/a/27174052/1847976

However, the above answer does not have the "value" or unit concerned per activity if applicable. It only lists the start and end times.