Screen Size in Eclipse Simulator

I am looking at a simple example - I am using Eclipse -

When I click on the "run" toolbar icon, the application launch screen is displayed (as I hoped), but the whole droid simulator is huge / too big.

I searched and found that I should go to Window - Android SDK and SDK Manager. Highlight my simulator and select "Start", then click "Display Scale" in "Size", and then enter the measurement. Then click "Run."

When I do this procedure, I get a general android window - I can shift the start panel, etc., but I do not get the initial screen of my program (configured in main.xml).

Will you help solve this problem?

+4
source share
7 answers

enter image description here

In Eclipse, if you selected the Android SDK and AVD Manager from the Window drop-down menu.

Here you can change the screen size of your virtual Android device (emulator).

See the resolution of the device you are targeting. For instance. QVGA for HTC Wildfire.

+6
source

If the emulator resolution is correct, you can ask the emulator to scale itself using the -scale command line option

From eclipse you should add this as additional emulator command line options

Project | properties Select "Launch / Debug" Select "Launch settings", select "Change" Select the "Target" tab You may need to expand the dialog to view additional parameters for starting the emulator.

Here you can add the -scale option.

-scale.5

works for me

+4
source

Project | Properties Select Run / Debug. Select "Launch Configuration", select "Edit." Select the Goal tab. You may need to expand the dialog to see additional options for starting the emulator.

Here you can add the -scale option.

-scale 0.55

works for me PERFEKT ^^

+2
source

Ooor ..

You can download the HTC Wildfire skin (as I did) with all its sweet keys and a sweep all over the skin :) I love it

Link to the skin and instructions for use

Now I have to figure out how to make it look like the original device OS. I believe the latest version for HTC is 2.2.1 (API 8), but somehow it looks completely different.

+1
source

Another solution "on the fly" is to run your emulator with the Android SDK and AVD Manager: select your AVD, click "Start", check the box "Display scale to real size" and enjoy finding the size you need!

I often use this function for debugging, because the execution is performed on slower computers, such as mine.

Hope this helps!

0
source

You can use the -skin [height x width] command line option, for example -skin 320x480

0
source

You can run the emulator Using the desired AVD from the Android SDK and AVD Manager , then scale the display to the actual size, set the desired size.

Your application will not start, but the next time you start it, it will be executed using the existing AVD if the required properties are consistent.

If this does not happen, select your project and run β†’ Run as β†’ Run configurations ... β†’ Android application β†’ Your application β†’ Target β†’ Deployment target selection mode β†’ Manual

0
source

Source: https://habr.com/ru/post/1344679/


All Articles