Code example for WindowManager

Methods: getDefaultDisplay

      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(){
Connect your IDE to all the code out there  Get Codota for Java