How to find out Android device diagonal display width or screen size using adb shell? -


i need find out device-width keep track set different actions based on different width of every device, further used write script automate process. through research find out using commands like-

$ adb shell wm size output-physical size: 720x1280  adb shell wm density output-physical density: 320 

curious know, if there other better way of doing this?

precise format of dumpsys command depends on hardware vendor (of graphics chipset/driver , handset itself) should able find info in adb shell dumpsys display output


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -