Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Using a tablet to emulate other devices?

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?

like image 726
Zippy Avatar asked Jan 14 '13 16:01

Zippy


People also ask

What is mobile emulation?

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.

What is the use of emulator in Android?

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.


1 Answers

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
like image 129
Booger Avatar answered Sep 19 '22 17:09

Booger