Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:14:34+00:00 2026-05-29T21:14:34+00:00

I am testing my app on the android emulator. On one screen I have

  • 0

I am testing my app on the android emulator. On one screen I have a banner ad. The dimensions of the ad are 320×50.

When I start up an emulator of resolution 480×800 and 240dpi (hdpi), the banner ad is taking up the entire width of the screen.

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)

I’m having trouble understanding why a 480×800 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:14:35+00:00Added an answer on May 29, 2026 at 9:14 pm

    A 480×800 device at HDPI has a screen width of 320dp. As Google’s docs say, “on a 240 dpi screen, 1 dp equals 1.5 physical pixels”. So that means a resource specified as 320dp on an HDPI screen will display as 320*1.5=480 pixels.

    In the case of mdpi (160dpi) I believe dp and px are 1:1, so a 320dp wide resource will display as 320*1=320 pixels. Note that it is pretty rare to have an mdpi device with 480px width, that’d be a pretty big and pixelated looking screen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm
I have been developing an Android app and testing with a 1.5 AVD and
I have been having trouble getting the screen dimensions for android. I do not
I want to do some testing on the Android emulator to run an app
I have been building a project and testing it on the Android emulator. I
I'd like to choose the emulator to simulate the testing of my android app
I am making one app on Android and I have no idea what is
I'm trying to build a small testing app with erlang+mnesia. I have a user
I have an android app for which i need to ensure that it has
This is my first Android app. I need to email what I have so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.