Code example for Point

Methods: getSize

0
		this.ctxt = context;
		//this.sMode = smode; 
		getHolder().addCallback(this);
		gThread = new GameThread(getHolder(), ctxt);
		setFocusable(true);
		Point maxDims = new Point();//is this REALLY necessary?
		((WindowManager)context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getSize(maxDims);
		w = maxDims.x;
		h = maxDims.y;
		gThread.dostart();
//		String msg = ""; 
//		msg += Float.toString(w); 
//		msg += ','; 
//		msg += Float.toString(h); 
//		Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); 
	} 
	@Override 
	public void surfaceChanged(SurfaceHolder holder, int format, int width, int height){
		//i don't know why 
	} 
Contextual code suggestions in your IDE  Get Codota for Java