Is there a way to get the display refresh rate programmatically?

As a name, I want to get the refresh rate of an Android phone, and then show it to the user. Is there any way?

Updated: what is the refresh rate? http://en.m.wikipedia.org/wiki/Refresh_rate

+6
source share
1 answer

Decision:

Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); float refreshRating = display.getRefreshRate(); 

Thanks THelper.

+15
source

Source: https://habr.com/ru/post/914493/


All Articles