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 6254797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:14:48+00:00 2026-05-24T14:14:48+00:00

One would say that if the Galaxy Tab screen resolution (in portrait mode) is

  • 0

One would say that if the Galaxy Tab screen resolution (in portrait mode) is 600px and the screen width is 3.55inch, the screen density would be 600/3.55 = 169 dpi. Knowing that and keeping in mind the way the device independent pixels (dp) is computed (http://developer.android.com/guide/practices/screens_support.html):

px = dp * (dpi / 160);
600 = dp * (169 / 160);
dip = 568

So drawing a horizontal line of 568dp (device independent pixels) width starting at position 0 must exactly match the width of the screen. But if you try this on device you will find that the screen width is 400dp. I will use the same formula again but for getting dpi:

600 = 400 * (dpi / 160);
dpi = 240

So having the 240dpi, 3.55inch screen width and 600pixels, does it mean that one physical pixel is composed of more ‘dots’ otherwise the parameters corresponds to the width of 852pixel (3.55*240).

I thought that dpi means dots per inch, which is pixels per inch. But this seems to not be true…

Added later:
This (http://developer.android.com/guide/topics/resources/more-resources.html#Dimension) says:

160dp is always one inch regardless of the screen density

Which is not true. Just check the measurement source from this:
Difference between android dimension: pt and dp

Added even later:
The reason I am asking is that violating the rule that 160dp = 1inch leads to the fact that when specifying the control width to e.g. 320dp it will cover on Galaxy Tab much bigger portion that that really necessary and much bigger then what you would expect from 600x1024px screen…

Thanks for clarification
BR
STeN

  • 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-24T14:14:49+00:00Added an answer on May 24, 2026 at 2:14 pm

    Galaxy Tab (7″) doesn’t report its real density. To understand this issue, read the following article:

    http://realmike.org/blog/2010/12/21/multiple-screen-sizes-with-processing-for-android/

    Apparently, that’s also what Samsung found when they made the Galaxy
    Tab. The Galaxy Tab has a 7″, 1024×600 screen with 170 dpi. Yet, the
    Tab does not report its density as “mdpi” but as “hdpi”, so the layout
    looks exactly as in the second screenshot. If they used “mdpi”, the
    icons would be .28″ wide, with “hdpi”, they are .42″ wide—not a big
    deal, and I must admit, the layout does look prettier this way.

    The article contains some images that will make you understand the problem.

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

Sidebar

Related Questions

I'm confused as to when one would choose AsyncTask over a Handler. Say I
Let's say I have a pointer allocated to hold 4096 bytes. How would one
Say I have two models and one belongs to another. Now normaly you would
Say I have an array: $before = array(1,2,3,3,4,4,4,5) How would I remove just one
One would expect that even though strings are immutable, value-equality and reference-equality would not
normally one would say: GRANT ALL PRIVILEGES ON . TO 'monty'@'%' Can we use
I am trying to create an app with horizontal scrolling, so that one would
Template methods as in NOT C++ templates . So, say that you would like
Instinctively, I would say that this is impossible, as NHibernate needs to know some
First off I would like to say that I have done ample research on

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.