How to get physical size of Screen?
For BlackBerry and Android.
How开发者_Go百科 to get physical width and height of Screen (not resolution) in inches or centimeters?
Is there any method to do it?
Many thanks !
Use for Blackberry ::
import net.rim.device.api.system.Display;
int DeviceHeight = Display.getHeight();
int DeviceWidth = Display.getWidth();
for Android ::
Display display = getWindowManager().getDefaultDisplay();
int DeviceHeight = display.getHeight();
int DeviceWidth = display.getWidth();
精彩评论