views:

1773

answers:

1

Hello, I was wondering if there was a way to create my own Windows Mobile emulator image. I have a Sony Ericsson XPERIA X1 phone, which has a 480x800 on a 3 inch screen, approximately 300 DPI.

I'd like to create an emulator image with the correct screen properties, and hopefully a skin that resembles the correct button locations and stuff for the phone.

I do own the phone, so I can create an image from the phone if necessary.

Is this possible, and if so, how?

+5  A: 

You don't need a custom image for what you're describing (and you couldn't create one if you needed to anyway). The emulator image contains only the OS functionality itself. The skin, buttons and screen size are all configured in an XML file.

As an example, install the WinMo 5.0 SDK and then navigate to here:

C:\Program Files\Windows Mobile 5.0 SDK R2\PocketPC\Deviceemulation\Pocket_pc

You'll find Pocket_PC.xml. In it is describes things like the skin images (as well as button actions):

<view
    titleBar ="Pocket PC - WM 5.0"
    displayPosX="55"
    displayPosY="67"
    displayWidth="240"
    displayHeight="320"
    displayDepth="16"
    mappingImage="pocket_pc_emulator_mask.png"
    normalImage="pocket_pc_emulator_up.png"
    downImage= "pocket_pc_emulator_down.png">

You'll see that the skins are in separate folders at the same level as the 0409 folder, which contains the actual CE image.

Browse around and you'll see the same layout for Smartphone, and in fact the WinMo 6.0 SDK is the same way (not coincidentally).

Now head over to Studio and look in Tools->Options->Device Tools->Devices. Select any given emulator and click "Properties" and then "Emulator Options". Here you'll find another way to adjust display settings and skins. You can copy any existing emulator configuration by clicking "Save As" and then adjust it to match what you're after.

ctacke
I notice the option 'Specify ROM image'Can I use that to get the custom software of the xperia, etc?
Mike Christiansen
No. You can point it at a custom CE image built with the right tool chain, which you don't have.
ctacke
How would someone get this toolchain, and what is it? :P
Mike Christiansen
It's based on Platform Builder, but is not the same. You have to be a qualified and licensed WinMo OEM to get it, so unless you're going to be making devices, and in large quantity, you're not going to have access to it.
ctacke
Interesting... Great answer by the way
moster67