Or is there another approach to find out the activity size by using the reflection library? Is it possible to check whether a softkey panel exists and what size it have? or is there a function to get the device type or name, because if I know what device it is I can handle the screen problem by my self.