How to develpe HTC Touch HD Mobile application using Windows Mobile 5.0? - Windows Mobile Development and Hacking General

Hi all,
We will create the HTC TOUCH HD Mobile application. I have some development issue there is mentioned below,
How to fix the Screen Resolution for HTC mobile? the windows mobile emulator resolution is 240x320, but the HTC Mobile resolution is 480x800. So i need the information about this.
Thanks is advance!!!

Next time, post in Q&A.
Answer to your question: Use the correct emulator. WVGA.

You can change the Video Resolution in the Config of the Emulator.
It is also possible to run most .net applications under winxp.
The only thing is that you will have to fix, if you read out the path per code the path in WinXP will have a starting "file:\\" just remove it and resize the form like you want it

Have look at post #3 in here.
http://forum.xda-developers.com/showthread.php?t=549132
MS emulators for WinMo 6.1.4 have a 240x400 and 480x800 devices the difference between WinMo 5 and 6 is trivial. Compile it under the 5.0 SDK and test the exe on the 6.0 emulator, or compile it under the 6.0 SDK and see if it runs on 5.0. (Both methods will probably work.)

Related

Windows Mobile emulators?!!!!

Hey,
As you all know I've made a site for touch friendly programs: www.touch-innovation.com
Basically to help me through adding programs and such, I need a windows mobile emulator to make life easier for me!
Link me to some please - free if you can
Isn't there one on the windows site in the wm sdk?
I have that, but it's not an emulator as such, it just catches things (if you see what I mean)
Napbree said:
I have that, but it's not an emulator as such, it just catches things (if you see what I mean)
Click to expand...
Click to collapse
It is an emulator. It emulates hardware and therefor enables Windows Mobile to run on hardware that wouldn't be able to run it without emulation.
I use it. You will need microsoft visual studio 2005 or better to start with.
What about the free one from Microsoft? In addition to that you need some emulator images:
Cook one (see my signature)
Download them form Microsoft, too.

Resolution Changer for Windows XP

Here is my resolution changer named SwapResolution. It swaps the display resolution between 800x480 and 1024x600.
It binds to the correct hardware button (Synaptic Scroll Down Button).
This is the version 1.0.0.2 updated on 2008-11-09.
Changelog:
1.0.0.0 - Compiled AutoIt script, occasional crash.
1.0.0.1 - Rewritten in C++, quicker and more reliable. Visual C++ 2008 SP1 Redistributable Package needed. This version works only with Windows XP.
1.0.0.2 - Written in C++, quick and reliable. Self suficient. Runs on Windows XP and Windows Vista.
Thank you
--------------------------------------------------------------------------------
I found that NuClear235 had already posted an answer at
http://forum.xda-developers.com/showthread.php?t=378650
But it did not work exactly as NuClear235 described. My Synaptics control panel did not have any BUTTONS option. I installed the generic driver from synaptics.com and the BUTTONS option appeared. ControlCenterLauncher.exe should be bound to SCROLL LEFT as described, but ResolutionSwitchLauncher should be bound to SCROLL DOWN, not SCROLL UP as he stated. It works fine now!!
btw: Which Synaptics Control panel you use, that have not the BUTTONS option?
the originaly from HTC Vista download?
Original HTC Synaptics drivers (to download from HTC´s Homepage) Version 10.0.11.1
or the newer:
from Synaptics Homepage Driver Version v10.1.8
http://www.synaptics.com/support/drive.cfm
drivers direct link:
http://drivers.synaptics.com/Synaptics_Driver_v10_1_8_XP32.exe
I use the latest Synaptics drivers directly from Synaptics and it works without problems.
ok, thank you And it is not depending what you install first or last?
First: Install Synaptics from synaptics Homepage
second: the Display changer. http://forum.xda-developers.com/attachment.php?attachmentid=124129&d=1224717743
?
Great work I think the XP related threads are to overloaded at the moment
i cannot see the woods behind the many woods
I don´t have within my WXP TPC the folders c:\program files\HTC, where must located the files ControlCenterLauncher.exe nad ResolutionSwitchLauncher .exe.
If I understand that right, this is only a Part of vista?
Your switcher works, but by me, the switcher don´t interpolate the solution, he change the resolution and then i can scroll left and right on the screen to see all. That´s right, or I´m wrong?
The switcher was working for me, interpolating the resolution, just like under Vista. Now it is not. I have to found the reason. Patience!
uiui cool Thank you
Can this work on Vista too? HTC's solution is an always running background application with additional .net memory footprint, because it is not a native application.
LordDeath said:
Can this work on Vista two? HTC's solution is an always running background application with additional .net memory footprint, because it is not a native application.
Click to expand...
Click to collapse
yes this runs without any problems under vista too
New version 1.0.0.1
See first post.
Thank you. Maybe it works not with Windows Xp language localized Versions and loc. versions of synaptics.
Can you explain us, which drivers at least must be installed for switching the display under Windows XP?
I have installed only actually OS drivers and all drivers that are missed in devicemanager and the actually Intel graphic drivers, actually Synaptics driver, and your patch.
Maybe we must install some other tools from HTC too? (or copy some files from Vista Side to XP folders?
Or is nothing needed more than Display Drivers, Mouse drivers and your patch?
BG
Joy
I tried version 1.0.0.1 under Vista:
Copied the the right folder, run the reg file and restart. But it doesn't work.
What do I have to do to undo the changes made by the reg file?
New version resolution changer works perfect,thanks
LordDeath said:
I tried version 1.0.0.1 under Vista:
Copied the the right folder, run the reg file and restart. But it doesn't work.
What do I have to do to undo the changes made by the reg file?
Click to expand...
Click to collapse
It should be enough to delete this value in the registry:
Code:
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\PlugInConfig\TouchPadPS2]
"ExButton2RunApp"="\"C:\\Program Files\\SwapResolution\\SwapResolution.exe\""
or to replace it with the following one:
Code:
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\PlugInConfig\TouchPadPS2]
"ExButton2RunApp"="HKLM|SOFTWARE\\HTC\\ControlCenter|InstallPath|ResolutionSwitchLauncher.exe"
uiqjirka said:
New version resolution changer works perfect,thanks
Click to expand...
Click to collapse
Yes, but only on Windows XP as yet. And it needs Visual C++ 2008 SP1 Redistributable Package (x86). I will see what I can do.
Version 1.0.0.2 posted. See the first post of this thread.
I have only 800x480 in "list all modes"
devictoria said:
Here is my resolution changer named SwapResolution. It swaps the display resolution between 800x480 and 1024x600.
It binds to the correct hardware button (Synaptic Scroll Down Button).
This is the version 1.0.0.2 updated on 2008-11-09.
Changelog:
1.0.0.0 - Compiled AutoIt script, occasional crash.
1.0.0.1 - Rewritten in C++, quicker and more reliable. Visual C++ 2008 SP1 Redistributable Package needed. This version works only with Windows XP.
1.0.0.2 - Written in C++, quick and reliable. Self suficient. Runs on Windows XP and Windows Vista.
Click to expand...
Click to collapse
devictoria,
Thanks for developing this application. Somehow it doesn't work for me :-(. I have 1.0.0.2 installed.
One suspicious thing: I even don't have the option to see 1024x600 when I click "List all modes" for the display adapter. Did I miss something ?
Edit: never mind, reinstalling the VGA driver did the trick ;-)).
I am glad to see it working
devictoria.
Thank you for the great works. I have tried but unfortunately failed.
When I execute the SwapResolution.exe or press the correctly mapped botton, the screen just blinks and then go back to 800x480. I checked the VGA drivers and found two versions:
1) Digital Flat Panel (1024x768) on Mobile Intel(R) 945 Express Chipset (This is by default and the setting is 800x480 w/ 32 bit color. But when I change to 1024x600 w/ 32 bit color, the color does not show correctly).
2) (Default Monitor) on Mobile Intel(R) 945 Express Chipset Family (If I choose this one, it can only go 640x480 w/ Low 8 bit color).
Please help.
BallGor said:
devictoria.
Thank you for the great works. I have tried but unfortunately failed.
When I execute the SwapResolution.exe or press the correctly mapped botton, the screen just blinks and then go back to 800x480. I checked the VGA drivers and found two versions:
1) Digital Flat Panel (1024x768) on Mobile Intel(R) 945 Express Chipset (This is by default and the setting is 800x480 w/ 32 bit color. But when I change to 1024x600 w/ 32 bit color, the color does not show correctly).
2) (Default Monitor) on Mobile Intel(R) 945 Express Chipset Family (If I choose this one, it can only go 640x480 w/ Low 8 bit color).
Please help.
Click to expand...
Click to collapse
same problem here
The same problem as in previous post. The screen only blinks and do not change 800x480 resolution. In addition to above I tried "[email protected] Monitor", nothing changed...
XP TabletPC detects itself monitor as !THREE! "Digital Flat Panel (1024X768)"s and adds its to system... than I change manually in Display Propeties resolution to 800x480.
What`s wrong?
sardonix said:
The same problem as in previous post. The screen only blinks and do not change 800x480 resolution. In addition to above I tried "[email protected] Monitor", nothing changed...
XP TabletPC detects itself monitor as !THREE! "Digital Flat Panel (1024X768)"s and adds its to system... than I change manually in Display Propeties resolution to 800x480.
What`s wrong?
Click to expand...
Click to collapse
same problem too
any idea??

Question for the developers?

How can I make VS2008 let me deploy to my HTC TOUCH HD
i can only deploy to thje standard devices so my app does not look like it should (i.e. windows mobile 6 stanard, professional, vga, square vga etc)
any help would be gratefully received
you can download the sonyE x1 sdk it got a emulator which is wvga
of cause you can also just alter one of the other ones
you can change the res to custom in their settings
Download the Windows Mobile 6.1.4 emulator images, they have a greater range of screen sizes to try out.
http://www.microsoft.com/downloads/...52-F89E-4354-84CE-5D19C204498A&displaylang=en
cameronm said:
How can I make VS2008 let me deploy to my HTC TOUCH HD
i can only deploy to thje standard devices so my app does not look like it should (i.e. windows mobile 6 stanard, professional, vga, square vga etc)
any help would be gratefully received
Click to expand...
Click to collapse
hello,
I don't have VS here but :
- connect your device using active sync
- start your VS smartdevice project
- in the top bar, there is a list where you select the emulator, choose your device (WM6 Pro Device should be fine)
- click on the small icon "Connect to device" next to this list
- tadam! you can then debug your programs running on the device!
I made this for my Diamond and my Touch Pro and it's really perfect (for testing sensor components )
Hope this helps!
PS: download.microsoft.com and get the latest WM 6.5 SDK!

HD2 development

I didn't want to post this on the ROM dev forum 'cos strictly speaking it's not NOT dev
I've started tinkering with development and am a capable .net developer, so that's not the issue. The problem I have is with the device emulators you get at part of the windows mobile sdk - the 320x240 resolution is a far cry from that of the HD2's screen and wondered what the typical solution for developing full screen apps (i.e. not form-based) are and how to work around the emulation limitations?
Ideally I'd want to emulate the full HD2 screen size. Is that possible?
deviruchii said:
I didn't want to post this on the ROM dev forum 'cos strictly speaking it's not NOT dev
I've started tinkering with development and am a capable .net developer, so that's not the issue. The problem I have is with the device emulators you get at part of the windows mobile sdk - the 320x240 resolution is a far cry from that of the HD2's screen and wondered what the typical solution for developing full screen apps (i.e. not form-based) are and how to work around the emulation limitations?
Ideally I'd want to emulate the full HD2 screen size. Is that possible?
Click to expand...
Click to collapse
Have you downloaded the WM6 SDK? That comes with some larger emulators, although there isn't a WVGA one included (I have seen one though, so a bit of googling might help with a WVGA emulator). I generally build stuff then copy if to my device and run it from there. It's a bit long-winded, but I'm not an emulator fan (except for fpsece, of course )
http://www.microsoft.com/downloads/...3A-A651-4745-88EF-3D48091A390B&displaylang=en
My experience with Visual studio under WM is limited to one "hello world"-type app, but if there is one thing that struck me it's how well the IDE would integrate with the target - i.e connect your WM device to the PC through ActiveSync, VS recognises it, and you can directly do live debugging right on the hardware. Click "play" in VS, it automatically builds, uploads to the device and runs, with breakpoint support, etc...
So if you actually have the device, no need for an emulator. If not - well yes, that makes sense then
I use the emulator for the X1.... OK so it looks like an X1 on screen but it gives you the 800x400 resolution in the emulator... you can download it from here....
http://developer.sonyericsson.com/cws/devworld/technology/windows-mobile/xperia-x2
I think that its been updated now for the X2... but that has the same screen resolution...
You do get a lot of stuff included for the X1 but... let me know how you get on...
Regards,
Alan
Here you go mate. The 6.5 SDK has WVGA emulators in it...
http://www.microsoft.com/downloads/...1d-97a8-4f80-bc6a-ae010e085a6e&displaylang=en

[Q] accelerometer emulator

hi to all!
I would like to develop an application on HTC HD(it is my first mobile app) that will use the accelerometer and I will use the Windows Mobile Unified Sensor API and Visual Studio 2008. I have already installed Windows mobile device emulators but I am not able to run the GSensorTest application on any of these default emulators(I get NullReferenceException). I belive the problem is in the emulator that does not have the accelerometer sensor hardware emulated.
My question is: Is there a HTC HD emulator that I may use or is there any other way to have a WM6.1 emulator with accelerometer? How can i easily test my application(without deploying directly to the device)?
Thank you so much in advance! and sorry if these infos were somewhere else and I did not found them
MOD EDIT - Thread moved to General Section due to it not being related to rom development

Categories

Resources