[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


You need to login to view comments.