简体   繁体   中英

Android: How to make an emulator in size of a real device?

I am trying to lunch my Android application on an emulator. The point is i want to make the emulator in the size of the real device . Although I used -scale 0.8 , it's still much bigger than real size

The dimensions that you set in the emulator are in inches, which match into the corresponding real device resolution and if you select to, dimensions on your resulting monitor image.

But consider that your monitor may translate that..

If you really wish to have the same dimensions in the resulting image on screen compared to the device in your hands, why not adapt the dimensions yourself until you're happy with the result? In eclipse: Window -> Android Virtual Device Manager -> Device Definitions -> New Device

Create the device with the dimensions it should have (you may look in gsmarena ) then run the emulator on real size making sure your monitor/video card is not scaling (extended desktop with multiple monitors). If not just tune the dimensions when creating the virtual device until you get what you want

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM