I make the game and use SurfaceView to draw objects and in the SurfaceChanged method I get the height and width of the View. Here is the code snippet:
public void surfaceChanged(SurfaceHolder arg0, int format, int width, int height) { mViewWidth = width; mViewHeight = height; System.out.println(mViewWidth+" "+mViewHeight); }
It turns out that the width and height of View 320x403. But the resolution of my screen is 320x240. How is this possible !?