Code example for WindowManager

Methods: getDefaultDisplay

0
      return instance;
   } 
 
   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";