01-15-2010 04:45 AM
i am creating a website for BB Storm and Bold and iphone. I want to use the same HTML's all across with some customization based on the device the site is running on. So, i want to find out the OS version and screen size of the simulator. Any help would be appreciated.
Also, i would like to ask if i need to find the OS version and screen size or if there is any othe best way to do this.
01-15-2010 06:26 AM
From the following link you can find the screen size of each device/simultor,
Programmatically, it can be found it by calling
Programmatically, we can idendity the OS version by calling
01-21-2010 10:47 PM
Note the browser does include a header named "Profile" in all outgoing HTTP requests. This header stores the URL of the User Agent Profile file for the device making the request.
For example, here is the value of the "Profile" header for requests being made by the browser on a BlackBerry Bold 9000, running version 4.6 OS: http://www.blackberry.net/go/mobile/profiles/uapro
Open this URL in a browser to see that it is a simple XML file containing lots of information about the given device, including screen size information. Parsing this file may be another option depending on what information you are looking for in your web application.