Calling X resolution of screen from another class : I have a class of game named below

   

     public class BrickBreaker extends Activity {
    // there is lot of other code but i am only pointing to the issue
    class BreakoutView extends SurfaceView implements Runnable {
    // The size of the screen in pixels
        int screenX;

        int screenY;

     // Get a Display object to access screen details
            Display display = getWindowManager().getDefaultDisplay();
            // Load the resolution into a Point object
            Point size = new Point();
            display.getSize(size);

            screenX = size.x;
            screenY = size.y;
    }}

and from another class i want to access screenX other class is below.

    public class Paddle {
    public void update(long fps){
    rect.left = x;
        rect.right = x + length;
       if (x<0){
           x=0;
       }

       else if (x+length > screenX){
           x = screenX-length;
       }
    }


screenX is not accessible from here please help me how to do that?