Android :: Getting Width And Height Of Device Programatically For QVGA Devices?Aug 23, 2010
I want to get the width and height of my device to know what type device it is ie QVGA, HVGA ,WVGA.. Also i need to adjust some layouts according to width and height of the screen.
I tried following methods but its not working.
All these methods return wrong width and height for the 240x320 devices namely Samsung Europa and Alcatel which i have. Width = 320 Height = 240.. This is wierd as some of the critical functionality is getting hampered .. I think this is really a basic thing which shd be correctly provided. Please help me with this issue .