How to change screen size resolution on Android Lollipop device

If you want to test your app on devices with different screen sizes you could buy a lots of devices or you simple change the resolution of your device. In my case it’s a Nexus 4.

comparison of two screen sizes of nexus 4

Two screenshot on a Nexus 4 left 576×960 – Right 768×1280 (Picture: Brussels comic strip)

The command for testing on different screen sizes is:

adb shell wm size 576×960

later you want to use

adb shell wm size reset

Advertisements

Posted on December 9, 2014, in Uncategorized. Bookmark the permalink. 1 Comment.

  1. By the way: In the past it was
    adb shell am display-size 576×960
    adb shell am display-size reset

    adb shell wm size is the new command.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: