[android] window size


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
  2. float h = display.getHeight();
  3. float w = display.getWidth();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.