Code example for Point

0
    } 
 
    @Override 
    public Point getDisplaySize() {
        final Display display = getDisplay();
        return new Point(display.getWidth(), display.getHeight());
    } 
 
    private static Display getDisplay() {
        return ((WindowManager) CgeoApplication.getInstance().getSystemService(Context.WINDOW_SERVICE))
                .getDefaultDisplay();
    } 
}