Windows Phone 7 (WP7) development to obtain device information

Source: Internet
Author: User

Hardware problems

Namespace needs to be introduced: using Microsoft. Phone. Info;

Information name Get code Data Type Remarks
Device manufacturer Devicestatus. devicemanufacturer String, less than 256 characters in length It can also be obtained using deviceextendedproperties. getvalue ("devicemanufacturer"). tostring (), but is not recommended.
Device Name Devicestatus. devicename String, less than 256 characters in length It can also be obtained using deviceextendedproperties. getvalue ("devicename"). tostring (), but is not recommended.
Unique device ID Deviceextendedproperties. getvalue ("deviceuniqueid ") Byte [] (array length less than 20)  
Device firmware version Devicestatus. devicefirmwareversion String It can also be obtained using deviceextendedproperties. getvalue ("devicefirmwareversion"). tostring (), but is not recommended.
Device hardware version Devicestatus. devicehardwareversion String It can also be obtained using deviceextendedproperties. getvalue ("devicehardwareversion"). tostring (), but is not recommended.
Total device memory size Devicestatus. devicetotalmemory Long It can also be obtained using deviceextendedproperties. getvalue ("devicetotalmemory"), but is not recommended.
Memory size in use by the application Devicestatus. applicationcurrentmemoryusage Long It can also be obtained using deviceextendedproperties. getvalue ("applicationcurrentmemoryusage"), but is not recommended.
Maximum memory size used by applications Devicestatus. applicationpeakmemoryusage Long It can also be obtained using deviceextendedproperties. getvalue ("applicationpeakmemoryusage"), but is not recommended.
       

 

 

 

 

 

 

 

See http://msdn.microsoft.com/zh-cn/library/microsoft.phone.info.deviceextendedproperties for details

 

 

Screen Resolution (this is currently 480*800 ):

Screen width (double) system. Windows. application. Current. Host. content. actualwidth

Screen height (double) system. Windows. application. Current. Host. content. actualheight

 

Operating system version:

System. environment. osversion. tostring ()

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.