Code example for Point

Methods: getSize

0
		 * ? 800 : 1280; int frameBufferHeight = isPortrait ? 1280 : 800; Bitmap 
		 * frameBuffer = Bitmap.createBitmap(frameBufferWidth, 
		 * frameBufferHeight, Config.RGB_565); 
		 */ 
		 
		Point size = new Point();
		getWindowManager().getDefaultDisplay().getSize(size);
 
		// todo move this to congifuration change event 
		SCREEN_WIDTH = size.x;
		SCREEN_HEIGHT = size.y;
 
		trace("SCREEN DIMENSIONS : " + size.x + " / " + size.y);
		/* 
		 * float scaleX = (float) frameBufferWidth / size.x; float scaleY = 
		 * (float) frameBufferHeight / size.y; 
		 */ 
		Bitmap frameBuffer = Bitmap
				.createBitmap(size.x, size.y, Config.RGB_565);
 
Experience pair programming with AI  Get Codota for Java