this is a really simple question on which I\'ve found no answer :/ How can I quickly access the screen resolution (width, height) as integer values?
I\'ve tried this
You can get screen metrics in this way:
Display d = ((WindowManager)getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = d.getWidth(); int height = d.getHeight();