安卓:使用平板电脑来模拟其他设备? [英] Android: Using a tablet to emulate other devices?

查看:169
本文介绍了安卓:使用平板电脑来模拟其他设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想投资于谷歌Nexus 10是我的平板电脑首选在测试我的应用程序 - 我只是想知道是否有可能效仿其他设备的屏幕分辨率?由于关系10有这样的高分辨率和DPI,我希望能够在其上运行我的应用程序比如,一个800×480的屏幕等等...

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?

推荐答案

有一个办法 - 从亚当·鲍威尔后G +的(Android的开发者之一)解释说好听一点:

There is a way - a post of G+ from Adam Powell (one of the Android devs) explains it nicely:

<一个href="https://plus.google.com/u/0/107708120842840792570/posts/cz5TxuoNDfG">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

adb shell am display-density

这篇关于安卓:使用平板电脑来模拟其他设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆