Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the current OS version of Windows Phone?

I need to get the current OS version of a Windows phone. That is, if it is Windows Phone 7.0 or 7.1, so that I have to write code supporting for both OS versions. I have to run my app in both 7.0 and 7.1.

like image 664
Sujiz Avatar asked Dec 01 '11 11:12

Sujiz


People also ask

What is the OS version of my phone?

Android DevicesGo to the home screen of your device. Touch "Settings," then touch "About Phone" or "About Device." From there, you can find the Android version of your device.

Which OS do I have?

1. Select Settings > about phone/device. 2. Look for "Android Version" This will tell you the Android operating system version.

Is Windows Mobile still supported?

Windows 10 Mobile users will no longer be eligible to receive new security updates, non-security hotfixes, free assisted support options or online technical content updates from Microsoft for free. Learn what this means for you.


2 Answers

you can get the OS Major and minor version of the phone OS through this following statement

temp = System.Environment.OSVersion.Version.Major
temp = System.Environment.OSVersion.Version.Minor

in both the WP 7.0 and 7.1 major version is 7 but Minor version differs. For Wp7.0 it is 0 and 7.1 it is 10

like image 65
Santhu Avatar answered Sep 18 '22 12:09

Santhu


Use System.Environment.OSVersion.Version

like image 28
Claus Jørgensen Avatar answered Sep 18 '22 12:09

Claus Jørgensen