How to resolve mobile phone model Devicestatus.devicename in Windows phone

Source: Internet
Author: User

The problem arises

In the WP development process will inevitably encounter statistics and other related data recovery, then use devicestatus.devicename this to get the name of the device often get similar to the following device information:

It can be seen that such data is not intuitive, and can not at a glance to find out what is the device.

How to Solve

The solution to the problem is actually very simple, we just have to create a dictionary of these equipment information and the actual model to correspond. It is very gratifying that someone has already done this work before:

Https://github.com/ailon/PhoneNameResolver/blob/master/PhoneNameResolver.cs

This foreign friend has an open source project which has various models of corresponding information, very easy to use!

Only intercept some of the code snippets, the specific use of the project can be on the home page, very simple to use the method, a static function just. +

Call Method:

So this problem is solved, no longer need to look at the mobile phone information in a daze.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

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.