Thanks, Kimmo. That was exactly what I was looking for!
And I already got my Tablet so will try it out soon :)
BR
Marko
On Mo, Okt 19, 2015 at 10:06 , Kimmo Lindholm <kimmo.lindh...@eke.fi>
wrote:
afaik emulator does not do all things correctly for the tablet, but
https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-sailfish-silica-screen.html/
-kimmo
From: devel-boun...@lists.sailfishos.org
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of tisno.de
Sent: 19. lokakuuta 2015 11:03
To: Sailfish OS Developers
Subject: [SailfishDevel] Detecting larger screen size of the Jolla
tablet
Hi all,
do anyone know a good way to determine if an app is running on the
Jolla phone or tablet?
I mean I want to react during runtime to a larger screen. Best would
be on the QML side or through a property which is set on the C++ side.
I don't want to have a static rpm for each the phone and the tablet.
Also detecting the architecture (assuming i486 is a tablet) is not a
good idea because it could be that in the future we see also ARM
tablets for Sailfish OS.
One idea would be to take all devices with a higher resolution than
1920 pixel width as a tablet device. This would work for now on the
Jolla phone and tablet. But the optimal way would be to detect the
actual screen size e.g. 4.5" or 7.8". Do you have an idea how this
can be done?
Thanks!
Marko
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org