Tuesday, July 21, 2015

Android: Get device screen refresh rate



Typically most devices have 60fps refresh rate. (eg. Nexus 5, Samsung S5)
Here's how to find the refresh rate of a device.
 Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();  
 float refreshRating = display.getRefreshRate();  

No comments:

Post a Comment