title: Getting dimensions of an Android device in dp
body: <p>I.e. the Samsung S6 Edge has the screen dimensions 1440x2560 pixels.</p>
  
  <p>However, I need them in <code>dp</code> instead. How can I programatically get the dimensions (width and height) of an Android device in <code>dp</code>?</p>