Making an Emulator for different screen resulutions

mrossen

Active Member
Licensed User
Longtime User
Hi there,

I am not sure this is the right forum to ask this question.
But I an right sure there is one of you to answer the question.

I have made a project witch I have tested in the emulator with the WVGA800, WQVGA400, WVGA854 skin and the screen resulotion is perfect.

I have tested it on a HTC Sensation device and now the problem shows.
The screen is not filled out 100% verticaly.

Next I tried to made a Emulator for the HTC Sensation where the screen resolution is 540x960.

When I do this my app only fills out the screen by apox. 50%

Do any one knows to make skin for the emulator for this resolution?

Mogens
 

iliberis

Member
Licensed User
Longtime User
thump_6922580newavd.png


In AVD Manager, you can create a new device, with the desired resolution.

EDIT: Sorry, I've don't understand your question. If you want to create a new Skin, you can copy some default skin. In the android-sdk folder, you can go to platforms\android-10 (by example), skins. Copy one folder and rename it "Sensation". In this folder, you'll find a file named "layout". Here you can define a new predefined skin with the desired resolution.

In AVD Manager, you can use the new skin.

(Sorry for my bad english)
 
Last edited:
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
Yes, thank you.

But when I create a new emulator here it seens not to fit the actual device.

I thought that I was doing some thing wrong.
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
I have done as you described.

But the layout file seems to be in another format that an text file ?

And, don't worry about your english. It is fine.
 
Upvote 0

iliberis

Member
Licensed User
Longtime User
I have done as you described.

But the layout file seems to be in another format that an text file ?

And, don't worry about your english. It is fine.

It's plain text. I've edited it using wordpad.

The problem is that you have to change other sizes, widths, etc, not only display resolution. It's a bit boring, but it's possible. You have to relocate keyboard (key by key), and the others controls.
 
Upvote 0
Top