I know the way to get "screen size" using DisplayMetrics
, but as note in the SDK Document:
The size returned by this method does not necessarily represent the actual raw size (native resolution) of the display. The returned size may be adjusted to exclude certain system decor elements that are always visible. It may also be scaled to provide compatibility with older applications that were originally designed for smaller displays.
Is there anyway to get the real screen size?