在Android中检测显示类型 [英] Detecting display type in Android

查看:68
本文介绍了在Android中检测显示类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何机制(在SDK或NDK中)用于获取有关当前显示的供应商信息(或实际上是任何信息)?特别是,我希望发现显示器是OLED还是LCD还是其他显示器,因为我测试过的每个OLED设备都具有可怕的色彩保真度(过饱和).而且由于Android没有颜色校正,因此需要在应用程序级别进行校正.从理论上来说,作为后备的手册,可以手动找到流行的OLED设备并按设备类型进行查找是可行的,但是(a)那里有很多设备,并且(b)在设备上工作,而不是在显示器级别上工作,这会增加额外的复杂性使用外接显示器的设备.甚至把那个列表放在一起也是一个挑战...

Is there any mechanism (in either the SDK or NDK) to fetch vendor information (or really, any information) about the current display? In particular, I'm hoping to find if a display is OLED vs. LCD vs. other, as every OLED device I've tested has horrible color fidelity (over-saturation); and since Android doesn't have color correction this needs to be corrected at the app level. As a fallback having a manual list of popular OLED devices and doing a lookup by device type is theoretically feasible, but (a) there's a whole lot of devices out there and (b) working at the device rather than display level adds additional complexity for devices using external displays. Even putting together that list would be a challenge...

推荐答案

我去了Android代码,我很肯定地问了一个罐子,说没有API方法可以返回显示类型.

Did went to the Android code and I asked around an can, with a great certainty, say there is is no API method that returns the type of display.

这篇关于在Android中检测显示类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆