0

when I was trying to get physical screen height and screen width by using UiDevice.getDisplayHeight() getDisplayWidth() or other system method. I got height 1439, width 720, but my real screen size is 2244x1080. I've tried put an manifest in androidTest folder with config:

<supports-screens
       android:anyDensity="true"
       android:largeScreens="true"
       android:normalScreens="true"
       android:smallScreens="true"
       android:xlargeScreens="true" />

but it dose not work.

JohnnyChan
  • 11
  • 2

1 Answers1

0

You need to get the size in pixels, check out this answer: Get screen width and height in Android

Vitali Pom
  • 602
  • 1
  • 8
  • 29