有没有什么办法让显示器的刷新率编程? [英] is there any way to get display refresh rate programmatically?
本文介绍了有没有什么办法让显示器的刷新率编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正如标题,我想获得的android手机的刷新率然后显示用户。有什么办法?
As the title, i want to get the refresh rate of android phone then show to user. Is there any way?
更新:什么是更新率? http://en.m.wikipedia.org/wiki/Refresh_rate
Updated: what is refresh rate? http://en.m.wikipedia.org/wiki/Refresh_rate
推荐答案
解决的办法是:
Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
float refreshRating = display.getRefreshRate();
感谢THelper。
Thanks to THelper.
这篇关于有没有什么办法让显示器的刷新率编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文