0

If there is no api to get that, can I get the total height and width of the device which includes the bezel information?

sirajnadwar
  • 237
  • 2
  • 6
  • 13
  • "total height and width of the device" - Do you mean screen? – Vladyslav Ulianytskyi Mar 20 '19 at 04:41
  • Try this: https://stackoverflow.com/a/14342326/313870 – Demonick Mar 20 '19 at 08:41
  • Nope that doesn't give the bezel size included. According to google docs the actual device resolution is more then the one returned by the above api and the actual can be obtained through display.getmode.getPhysicalheight/width. However doing so still fails on my Samsung S9 which has 3 display modes but when I change to any of those yet only the highest resolution mode gets returned – sirajnadwar Mar 22 '19 at 23:40

0 Answers0