locked
How2 find out Pixel reso like 320x240 from MobileBrowser?? RRS feed

  • Question

  • User1989204087 posted

    Hi,

    I need to know how to get the mobile browser's Pixel resolution like 320x240 or 176x228, 240x320. I use look into header of the browser but can not find any. How and where to look for this info??

     

    Please help.

     

    Thanks

    Thursday, November 30, 2006 2:53 AM

All replies

  • User752049302 posted

    Try using the MobileCapabilities class like so..

    MobileCapabilities currentCapabilities = (MobileCapabilities)Request.Browser;

    currentCapabilities.ScreenPixelsHeight or currentCapabilities.ScreenCharactersHeight should be what you're looking for.

     

    You will be lucky to get accurate readings unless you have the correct attributes in your .browser files. See the sticky post on this forum for making such .browser files. I am currently looking for a site to share such files with other developers, but no joy at this stage.

     

    Cheers, good luck...
     

     

    Friday, December 1, 2006 5:04 AM