[SailfishDevel] Detecting larger screen size of the Jolla tablet

tisno.de marko.koschak at tisno.de
Mon Oct 19 09:32:41 UTC 2015


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.Lindholm at 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-bounces at lists.sailfishos.org 
> [mailto:devel-bounces at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20151019/76a56e10/attachment-0001.html>


More information about the Devel mailing list