1
votes

I took a look at the phone specifications and is says something like this

"HTC Desire. It comes with a 3.7" LCD screen (480 x 800 pixels of resolution)"

ok the screen is 480x800 pixels but how many dips it has ? and how do I calculate that.

Also it is confusing for me the fact that Desire HD has the same resolution 480x800 pixcels, and they both use hdpi images. I have application and when I install myApp they both use the images from hdpi folder

can someone tall me what is the resolution in dips in desire and desireHD ?

1
dips ALLWAYS are the same to all resolution, thats is the cause you must to use it, with dips your apps allways look the same in all devices (better i put "allways" )Aracem

1 Answers

1
votes

You can get information about display, such as size, density, and font scaling using DisplayMetrics.

Documentation gives a usage example.