The webserver wants to get info like screen size from each mobile handset that browses a webpage. The Javascript functions screen.width and screen.height return wildly inaccurate values.
Is there a way for the webserver to detect the screen size of the mobile handset? The client browser is webkit on Android.
You could try using CSS media queries, which should hopefully use the correct values.
Use basically the same rules for other width and heights and a cookie to check if a client loads more than one stylesheet to get the correct value. You won’t get the exact resolution, but it should be close enough. You can also check for orientation and use combinations of max-/min-(device)-width. Your file might end up with quite a lot of css-imports, but you should be able to pin down the resolution of the client quite accurately, unfortunately at the cost of a few HTTP-requests.
CSS3 Media Queries (Specification)