Showing posts with label emulator. Show all posts
Showing posts with label emulator. Show all posts

Monday, May 31, 2010

How to emulate the HTC HD Mini in Visual Studio

Windows Mobile 6.1 HTC HD Mini emulator Visual Studio 2005 2008Windows Mobile 6.5 HTC HD Mini emulator Visual Studio 2005 2008
(Windows Mobile 6.1 & 6.5)

With the release of HTC's HD Mini, Windows Mobile developers now have another resolution to worry about. And its not unreasonable to assume that HTC will be able to move a large number of these devices with the popularity of the HD and HD2.

You can take a look at the specifications here:
http://www.htc.com/www/product/hdmini/specification.html

What's important to note is the screen resolution of 320x480 - this is the only Windows Mobile device that I know of that uses this resolution. What's also important is the screen DPI - which is most likely 128. QVGA devices like the Touch are 96dpi and VGA and WVGA devices are 192dpi.

Its also worth noting that this device has a height to width ratio of 3 to 2 where normal devices are 4:3 and the wide devices are 5:3 so you may need to make some minor alternations to your GUI code when supporting the mini.

Now I haven't been able to find an emulator for this device but fortunately we can fake it using the Windows Mobile 6 SDK. I had a clever friend that works in Redmond help me out with this so I big thanks to her.

Fortunately we can use the Microsoft Device Emulator to launch a recompiled emulator image and change the display properties. Now remember I mentioned 128dpi? There is only one emulator image that supports this and that is the 320x320 Square QVGA emulator image. You can try other images but the resources will be incorrect and the sizes of menus, icons, etc will be either too big or too small.

So lets cut to the chase, assuming you have Visual Studio 2005 or 2008 installed and the Windows Mobile 6.1 SDK you can launch the emulator from the command line or by using a Batch file with the following command:

"C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe" "C:\Program Files\Windows Mobile 6 SDK\PocketPC\DeviceemulationV610\0409\PPC_USA_GSM_QVGA_VR.BIN" /memsize 256 /hostkey Left-Alt /video 320x480x16

or for 64 bit systems:
"C:\Program Files (x86)\Microsoft Device Emulator\1.0\DeviceEmulator.exe" "C:\Program Files (x86)\Windows Mobile 6 SDK\PocketPC\DeviceemulationV610\0409\PPC_USA_GSM_QVGA_VR.BIN" /memsize 256 /hostkey Left-Alt /video 320x480x16

Windows Mobile HTC HD Mini command line emulator launch for 6.1
(Launching the emulator at 320x480 - Windows Mobile 6.1)

You can also try the 6.5 image but I wasn't able to get the start menu working, presumably there are additional resources needed for the 480 high screen:

"C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe" "C:\Program Files\Windows Mobile 6 SDK\PocketPC\DeviceemulationV650\0409\PPC_USA_GSM_320x320_VR.BIN" /memsize 256 /hostkey Left-Alt /video 320x480x16


Once you have it up and running, you can cradle it just like any other emulator, it will show up in the Device Manager at the bottom with an ID string in the "Others" section.

Syncing the HTC HD Mini emulator with device manager on Windows 7 64
(Custom emulator shown in the Device Manager)

Panoramic Calc Pro debugging on the HTC HD Mini Windows Mobile 6.5 emulator using Visual Studio 2005
(Debugging Calc Pro with the custom launched emulator)


Good luck and feel free to post questions

Further reading:
http://msdn.microsoft.com/en-us/library/bb630224.aspx

Friday, January 2, 2009

Windows Mobile 6.1.4 Emulator images available

This one slipped by me in late November. Microsoft has released updated Emulator Images for Windows Mobile 6.1.

It looks like the big change is the inclusion of the Internet Explorer Mobile 6 which is based off of the desktop Internet Explorer's HTML engine. This would be more exciting if I could install it on my real device but its a great opportunity to test out the new mobile browser.

I'm also hoping this release fixes the DPI bug on the WVGA Windows Mobile Professional emulator.

Grab them here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=1A7A6B52-F89E-4354-84CE-5D19C204498A&displaylang=en



** Update **

So I'm happy to report that the WVGA emulator works. Aswell, the new Pocket Internet Explorer is fantastic! It even supports flash with no addtional downloads. Performance was slow on the emulator so I'd still be very interested to try it on a real device.

A BIG step in the right direction.

Friday, September 26, 2008

How to simulate phone calls on Window Mobile 6 emulators

How to emulate phone calls on a Windows Mobile Emulator

The Windows Mobile 6 SDKs come with a great tool for emulating incoming phone calls and SMS messages. This is an invaluable tool for testing (all of your applications and games should be well behaved if a call comes in).

To launch the Cellular Emulator, open the Start Menu, Programs, Windows Mobile 6 SDK, Tools, and finally - Cellular Emulator.

Before you can start testing you'll need to configure the emulator you're planning on using to perform your tests.

Open your Windows Mobile emulator (obviously this won't work with the "classic" emulators). Click the File menu and select Configure ... From here select the Peripherals tab. Now go back to the Cellular Emulator and look at the bottom left corner of the Window. This will show the COM port the Cell Emulator is using. Type this into the settings for the Emulator under Serial port 0: (it won't appear in the drop down list). Press OK.

Now you'll need to perform a soft reset of the emulator (from the File Menu).

You should now see that your emulator has full signal strength - you're ready to test phone calls. If you make calls on the emulator this will also be accepted by the Cellular Emulator on your desktop.

The rest is straight forward - play with the options and try not to think about how much time you would have saved if you had this 3 years ago.

Wednesday, August 6, 2008

How to run Pocket PC software on a PC using Emulators (without Visual Studio)

Here's a quick answer on how to run Pocket PC games on a Desktop PC.

Its not a simple process but I thought this was a useful post.

Taken from answers.yahoo.com
http://answers.yahoo.com/question/answer;_ylt=ApkZyyC_FOaoOLCzJbE_yWkazKIX;_ylv=3

You can run Pocket PC software using an emulator on a Windows PC but its not a simple process. You'll need to download the Standalone Device Emulator (link below)Then you'll need to sync the emulator using through ActiveSync (for Windows XP) or the Windows Mobile Device Center on Vista. If you're using Vista read the blog post linked below.Finally - you'll need to use the Device Emulator Manager which "should" be installed with the stand alone emulator. Using the Manager you first have to "Connect" to an emulator of your choice (right click on the emulator) and then once its loaded "Cradle".From there you can install any games or programs onto the emulator.