Code example for DisplayMetrics

Methods: getMetrics

0
			//enableZoning(usingSmallScreen()); 
		} 
 
		@Override 
		protected void getDPI(float[] values) {
			DisplayMetrics metrics = new DisplayMetrics();
			getWindowManager().getDefaultDisplay().getMetrics(metrics);
 
			values[0] = metrics.xdpi;
			values[1] = metrics.ydpi;
		} 
 
		@Override 
		protected void displayMessageOnOSD(String msg) {
			Log.i(LOG_TAG, "OSD: " + msg);
			Toast.makeText(ScummVMActivity.this, msg, Toast.LENGTH_LONG).show();
		} 
 
		@Override 
		protected void setWindowCaption(final String caption) {
Connect your IDE to all the code out there  Get Codota for Java