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
The easiest way will be to implement onSizeChanged. You are probably getting a value of 0 because the view hasn't initialized yet. You can't call the above code in the View constructor for example.