Read the height in GoogleFit in Android
问题 I tried to read user's height in Google Fit in android with this code : DataReadRequest readHeightRequest = new DataReadRequest.Builder() .read(DataType.TYPE_HEIGHT) .setTimeRange(FIRST_DAY_OF_MONTH_INMS, NOW_INMS, TimeUnit.MILLISECONDS) .build(); But I only got a empty dataset with no dataPoint. According to the DataType TYPE_HEIGHT documentation: the start time should not be set. So I tried to remove : .setTimeRange(FIRST_DAY_OF_MONTH_INMS, NOW_INMS, TimeUnit.MILLISECONDS) -> CRASH java