Code example for Point

Methods: getSize

0
        // TODO Auto-generated method stub 
        stop(); 
    } 
     
    public Point calculateCenterX(Context context) {
        Point size = new Point();
        ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getSize(size);
        centerX = size.x / 2;
        return size;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java