I'm thinking of investing in a Google Nexus 10 as my tablet of choice for testing my apps on - I just wondered is it possible to emulate other devices screen resolutions? As the nexus 10 has such a high res and DPI, I would like to be able to run my app on it in say, an 800 x 480 screen etc...
I would like to do this if possible because it would be faster than using the emulator and would support multi-touch. It seems like a no-brainer, but is it actually possible?
It recreates the device (hardware and software) on a host machine. This re-implementation of the mobile software is typically written in a machine-level assembly language, an example is the Android (SDK) emulator.
The Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device.
There is a way - a post of G+ from Adam Powell (one of the Android devs) explains it nicely:
https://plus.google.com/u/0/107708120842840792570/posts/cz5TxuoNDfG
Basically there are some ADB commands you can use to change the resolution a device displays:
adb shell am display-size
and
adb shell am display-density
For devices 4.3+, the command is slightly different:
adb shell wm display-density
adb shell wm dislay-size
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With