title: android difference between 480x800 hdpi and 480x800 mdpi
body: <p>I am testing my app on the android emulator. On one screen I have a banner ad. The dimensions of the ad are 320x50.</p>
  
  <p>When I start up an emulator of resolution 480x800 and 240dpi (hdpi), the banner ad is taking up the entire width of the screen.</p>
  
  <p>When I start up an emulator with the same resolution but 160dpi (mdpi), the banner ad is taking up only a portion of the screen as I would expect (320 out of the 480 pixels are taken by the ad)</p>
  
  <p>I'm having trouble understanding why a 480x800 device appears to have a 320dp screen width? With my understanding, displaying a 320px wide image on a 480px wide device should surely leave some space either side. I don't see how the dpi affects anything there, seeing as the resolutions are the same. I believe the higher dpi will just mean the physical device will have a smaller screen</p>