Get correct window width after resize or orientationchange event for Android
<p>I bound functions to the resize and orientationchange event. In this function i'm trying to read the windowwith. Iphone always gives me the correct sizes but Android devices (2.2, 2.3 and 4.0) seem to trigger the event before actually changing the windowssize. So I always get the last windowsize and not the newest. Is there some way (without timeouts) to get the correct windowsize?</p>

<p>I tried following attributes / functions:
    $(window).innerWidth(true)
    $(window).outerWidth(true)
    screen.width
    $(window).width()</p>

<p>None of them are giving the correct width.</p>

<p>Any suggestions?</p>
