Not allowed custom density in emulator?

105 views
Skip to first unread message

Tomáš Procházka

unread,
Aug 20, 2012, 6:38:15 AM8/20/12
to adt...@googlegroups.com

Why is not allowed to enter custom LCD density in emulator? There is combo with default values, but I think that should be possible enter custom value if I wan to emulate real device.




Michael Wright

unread,
Aug 20, 2012, 7:29:25 AM8/20/12
to adt...@googlegroups.com
The Abstract LCD Density option maps to the densities used by the framework, so this is essentially a drop down for ldpi, mdpi, tvdpi, etc. (docs). While real devices do have different densities, they'll actually get "rounded" to the nearest one of these values for dp calculations, which I believe is the only place this value is used.

Hope this helps,

Michael

Xavier Ducrohet

unread,
Aug 20, 2012, 12:33:09 PM8/20/12
to adt...@googlegroups.com
What Michael said.

I'll add one more thing: a device must report one of the bucket densities to pass CTS. So all compatible devices out there, despite all having screen density that are (slightly) different from one of those bucket densities all report a density from this list.
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Josh Brown

unread,
Aug 21, 2012, 3:04:14 PM8/21/12
to adt...@googlegroups.com
On the CTS side of things, are new densities retroactive?  For instance does TVDPI make any sense to a 2.2 device?

Xavier Ducrohet

unread,
Aug 21, 2012, 3:25:10 PM8/21/12
to adt...@googlegroups.com
I don't think so.
Reply all
Reply to author
Forward
0 new messages