[Below is testing I'm doing before using the ASP.NET C# API's to get screen resolution in pixels for any given mobile User-Agent in the world, using ScientiaMobile/WURFL]. Also note: I've included additional examples to support my claims, but they aren't necessary reading to understand/interpret the question, so please don't feel daunted, as they ('UPDATE' and beyond) are there for archival/appendix use.
Just to show you what I mean, if you go to this URL where you can enter a user-agent and have the screen resolution displayed/returned:
http://tools.scientiamobile.com/?user-agent-string=
Now, enter the following user-agent and click Submit:
Mozilla/5.0 (Linux; U; Android 2.3.5; ru-ru; Philips W632 Build/GRJ90) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Or, just click on this link below (instead) where I've embedded the user-agent into the URL:
Now, as you can see, it claims the screen resolution is 320x480
, now, a quick search on google for that particular phone model (Philips W632) yields a totally different answer, that being a screen resolution of 480x800
(these are all in pixels) as visible here:
http://www.phonegg.com/phone/2614-Philips-W632
Now, if it was wrong on just one item, I'd understand, but I've put in random (but real) mobile user agents (tested about 5 now) and they have all come out to be wrong. So, I am wondering if there is something wrong in the way I am using the framework (right now not using API, but testing on the above test page before I commit).
Here are more results/examples if you'd like:
Phone: Nokia 308, WURFL claims 176Wx120H
, here:
Google claims 240Wx400H
here: http://www.gsmarena.com/nokia_asha_308-5010.php
Final one I'll do...
Phone: Nokia 3250, WURFL claims 90Wx90H
, here:
http://tools.scientiamobile.com/?user-agent-string=OneBrowser%2F3.1+%28Nokia3250%2F04.60%29
Google claims 176Wx208H
here: http://www.phonegg.com/phone/199-Nokia-3250
Any ideas? Am I using the software wrong?
UPDATE: Additional examples, Reading Not Necessary:
Just noticed, it's reporting correctly for the Huawei H88 3G
, but still incorrectly for many other smaller screen devices!
Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; Huawei; H883G; HuaweiH883G)
Check these out! More FAILS:
Phone: Verizon HTC Droid Incredible 2 ADR6350, WURFL claims: 320Wx480H
, here:
Google claims 480Wx800H
here: http://pdadb.net/index.php?m=specs&id=2819&c=verizon_htc_droid_incredible_2_adr6350
Phone: Nokia E71-1, WURFL claims: 172Wx120H
, here:
Google claims 320Wx240H
here: http://www.gsmarena.com/nokia_e71-2425.php
Phone: SonyEricsson ST25i, WURFL claims: 128Wx92H
, here:
Google claims 480Wx854H
here: http://www.phonebunch.com/phone/sony_ericsson_st25i_kumquat-296/