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/