1

For BlackBerry and Android.

How to get physical width and height of Screen (not resolution) in inches or centimeters?

Is there any method to do it?

Many thanks !

Levanphong7887
  • 633
  • 4
  • 11
  • 21
  • See this post, may be its helpful: http://stackoverflow.com/questions/1016896/android-how-to-get-screen-dimensions – Mudassir Jul 15 '11 at 04:48
  • 3
    This is two distinct questions. Please separate out Android and Blackberry into separate questions on stackoverflow. They don't have much in common. – Michael Donohue Jul 15 '11 at 06:48

1 Answers1

1

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();
Jorgesys
  • 124,308
  • 23
  • 334
  • 268