How to Determine the Physical Size of the Screen

Asked 2 years ago, Updated 2 years ago, 48 views

The physical size of the screen on Android is
You can calculate using xdpi/ydpi and width/height (both pixels).
However, dpi is not always an accurate value.
For example, the dpi value of the Galaxy SIII is incorrect.

Is there any way to obtain the actual size directly?

Or
for Android TV or HDMI output. The size of the television itself, or
Is there a way to obtain a model ID to estimate its size?

Thank you for your cooperation.

android

2022-09-30 20:34

1 Answers

The manufacturer and model name can be obtained as follows:

import android.os.build;

String manufacturer = Build.MANUFACTURER;
String model=Build.MODEL;


2022-09-30 20:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.