Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 8
Registered: ‎02-26-2010
My Device: 8310
My Carrier: Vodafone

Determining Screen Size

Hi Guys,


Anyone one got any sample code/ projects about how I can easily determine the screen size of the device that has requested my mobile website.


I want to use this value to set the page size so I can affect how the screen control's are rendered?






Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Determining Screen Size

Each request from the browser will contain header information which includes a UAProf url to an xml file that describes all of the physical attributes of the device including screen size
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter