This seems to be a mistake, although I did not find any error reports for it. The number I get is also ~ 0.34, while I was expecting something like 60. I was not able to find a meaningful interpretation of 0.34 regarding refreshrates, and so my solution was simply to βreject my truth and replace my own "following code:
public float getRefreshRate() { final WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE); final Display display = wm.getDefaultDisplay(); float rate = display.getRefreshRate(); if (rate < 10.0f) { rate = 60.0f;
This works great in my application. Hope this was helpful!
source share