Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display display = getWindowManager().getDefaultDisplay();
- Point size = new Point();
- try {
- display.getSize(size);
- width = size.x;
- height = size.y;
- } catch (NoSuchMethodError e) {
- width = display.getWidth();
- height = display.getHeight();
- }
Add Comment
Please, Sign In to add comment