Code example for Point

Methods: getSize

0
 
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
 
		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);
 
		Bitmap frameBuffer = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT, Config.ARGB_4444);
 
		renderView = new AndroidFastRenderView(this, frameBuffer);
		graphics = new AndroidGraphics(getAssets(), frameBuffer);
		fileIO = new AndroidFileIO(this);
		audio = new AndroidAudio(this);
		input = new AndroidInput(this, renderView, 1f, 1f);
Connect your IDE to all the code out there  Get Codota for Java