I am a bit confused regarding the conversion of dp to px and px to dp. The formula goes this way
px = dp*(dpi/160)
Let's consider two screens A & B of densities of 160 dpi and 320 dpi respectively. This itself means that in the same area B has more number of pixels than A which means the pixel size of 160dpi screen should be larger for the same screen size and should be equal to the physical size of 2 pixels of 320dpi screen. But, putting in the formula for B this gives that 1 pixel for B is equivalent to the physical size of 2 density independent pixels or 2 pixels of 160dpi screen. What am I missing here?