Calories expenditure using google fit api
I am working on app fitness app , for that I used google fit api . Till now I am successful in fetching steps count , distance but I am unable to get calorie expenditure . Thanks in Advance You need to set the user's weight and height first. The expended calories are calculated using this information. These are the methods that I use to do this. (mClient is a GoogleApiClient instance) public static void saveUserHeight(int heightCentimiters) { // to post data float height = ((float) heightCentimiters) / 100.0f; Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long