Code example for Display

Methods: getHeightgetSizegetWidth

0
		 
	 
	public void tela() { 
	 
		try {  
			display.getSize(point); 
	    } catch (java.lang.NoSuchMethodError ignore) { // Older device 
	        point.x = display.getWidth(); 
	        point.y = display.getHeight(); 
	    }  
	  
	} 
	 
	public void setTouched(boolean touched){
		this.touched = touched;
	} 
	 
	public boolean isTouched(){ 
		return touched;
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE