This is for all devices.  While many of the names correspond to Android's
naming, this density reading should be accurate for all devices.   You can
get exact conversion from MM to Pixels using CN.convertToPixels().

On Mon, Aug 10, 2020 at 2:05 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I am using the simulator with iPad3 skin.
> If I call Display.getInstance().getDeviceDensity(), the result corresponds
> to hdpi Android device, that is not for Apple devices too.
> Is it right?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/a74b3b8c-6b89-4855-ac16-84346062662bo%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/a74b3b8c-6b89-4855-ac16-84346062662bo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWxUxq--QTUP6hUip91%2B0GYq_ikmW8Qh29b908x9sddTA%40mail.gmail.com.

Reply via email to