Last post Nov 26, 2008 12:32 AM by Chunsheng Tang - MSFT
Nov 24, 2008 07:01 AM|happytohelp|LINK
I am using the below methods to get the Windows Mobile device details, but these all methods return the details of my desktop PC and not of my Windows mobile. Is it because I am using windows simulator to test and in actual device they will work?
Can anybody please help me out. Am I doing something wrong?
thanks in Advance for your reply.
Nov 24, 2008 10:13 AM|SGWellens|LINK
Is it because I am using windows simulator to test and in actual device they will work?
No, the code you posted is server-side code and will always run at the server.
Have you tried looking into the Request object?
Nov 24, 2008 11:31 AM|happytohelp|LINK
Thanks for your reply.
Yes, actually I had first thought of using User Agent only. But some things were not clear. Thanks for the link explaining about UA.
The user agent for WM 6 is
Mozilla/4.0 (compatible; MSIE 6; Windows CE; iemobile 6.12)
IEmobile 6.12 is nothing but operating system and contains the version number?
But when I navigate to Setting>Version in WM 6 , there it is mentioned CE OS 5.2.1235. what is this?
And if we want to get these values[OSversion and Build from WM 6] and use it in our application. How can can we do that?
Thanks in advance for your reply.
Nov 26, 2008 12:32 AM|Chunsheng Tang - MSFT|LINK
>>IEmobile 6.12 is nothing but operating system and contains the version number?
IE Mobile is the browser bundled with Windows Mobile:
>> But when I navigate to Setting>Version in WM 6 , there it is mentioned CE OS 5.2.1235. what is this?
Windows Mobile OS is based on Windows Embedded CE OS. What you saw means that WM6 is based on Windows CE 5.2. For more information please refer to the following article:
Windows Mobile and Windows Embedded CE - what's the difference ?
Most of the time, the only thing you need to know is whether the type of the browser is IE Mobile or not, you don’t need to care about whether it is Windows Mobile or CE.
To find some fine-grained information on the capabilities of the browser, the
HttpBrowserCapabilities can also help, as shown in the following example: