I prepared for my two devices two different layouts. First I checked the width and height with this code:
Display display = getWindowManager().getDefaultD