Code example for Display

Methods: getHeight, getWidth

0
   } 
 
   private static QuranScreenInfo initialize(Activity activity){
      WindowManager w = activity.getWindowManager();
      Display d = w.getDefaultDisplay();
      return new QuranScreenInfo(d.getWidth(), d.getHeight());
   } 
 
	public static void initialize(int width, int height){
		instance = new QuranScreenInfo(width, height);
	} 
 
	public int getHeight(){ return this.height; }
 
	public String getWidthParam(){
		return "_" + getWidthParamNoUnderScore(); 
	} 
	 
	public String getWidthParamNoUnderScore(){
		if (this.max_width <= 320) return "320";
		else if (this.max_width <= 480) return "480";