Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: what is the difference between resolution and density?

Tags:

According to Android definitions, I've found that:

  • Resolution: The total number of physical pixels on a screen

  • Density: Based on the screen resolution, the spread of pixels across the physical width and height of the screen.

How can I understand better the differences between the two definitions?

like image 927
Cris Avatar asked Apr 01 '11 21:04

Cris


People also ask

What is the difference between pixel density and resolution?

These two acronyms are often used interchangeably although they do have different meanings. PPI (Pixels Per Inch) refers display resolution, or, how many individual pixels are displayed in one inch of a digital image. DPI (Dots Per Inch) refers to printer resolution, or, the number of dots of ink on a printed image.

Is pixel density more important than resolution?

You should know that a higher resolution also means more work for your graphics card to render. The larger the resolution, the more pixel density, the better graphics card you'll need to run your game.

What is density in Android?

Density refers to how many pixels have been physically squeezed into a 1 inch x 1 inch area. In digital displays / screens like monitors, phones, and tablets, density measurement unit is PPI (pixels-per-inch).

What does resolution mean in Android?

A term that refers to the number of pixels on a display or in a camera sensor (specifically in a digital image). A higher resolution means more pixels and more pixels provide the ability to display more visual information (resulting in greater clarity and more detail).


2 Answers

Resolution is a measure of how many pixels a display can show at a time eg. 640x480. Density is a measure of how big each pixel is in actual units. This relates heavily to screen size eg. 640x480 on a 15' display.

When comparing one device's resolution to another, it's a straight-forward comparison: the higher the resolution, the more information you can display at a time. When comparing density: the higher the density the sharper the display will appear.

If you have high resolution and low density, then your screen will be very large. On the other hand, low resolution and high density will result in a very small screen.

like image 50
Wesley Wiser Avatar answered Oct 17 '22 06:10

Wesley Wiser


Resolution is about how many pixels you can show on screen.

Density is based on your device real size, if it's small and has a higher resolution, than the density is high cause you show more pixels in less physical space.

like image 22
Marcos Vasconcelos Avatar answered Oct 17 '22 07:10

Marcos Vasconcelos