Android Screen Type / Brightness

Is there a way to get screen type information in Android? I want to know that I am using amoled / ips / tft or getting the maximum brightness of the screen, not the relative brightness, but the brightness in nits or candelas / cm2.

+4
source share
2 answers

Like other physical aspects of the device (weight, length, moment of inertia, etc.), this information is not stored on the phone. I think the only way to do this is to collect information, create a database and reference values ​​for device identifiers.

Edit: The only thing I can think of is to use the device’s light sensor and some kind of calibration device / method. Sort of:

  • keep the device x away from the mirror / white surface in the black tone room.
  • programmatically switch the screen using brightness settings
  • read the light sensor at every step

Limitations here will be in the light sensor, if it even exists, and force people to properly calibrate their device.

0
source

I don’t think there is a way to do this directly, but you can get the device name using

android.os.Build.MODEL; 

and then use this to make some kind of web service for the information you need.

-1
source

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


All Articles