ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17624
Re: Find out if running on a phone
-
From:
"Stephen M. Webb" <stephen.webb@xxxxxxxxxxxxx>
-
Date:
Mon, 11 Jan 2016 08:15:06 -0500
-
Cc:
Ubuntu Touch <ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CAAk6NE=PwrLzT5zme1H2xvakDTVi4_46bXfvJ0h4d0AyKiGLvw@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
On 16-01-11 06:57 AM, Jani Monoses wrote:
>
> You should not do that... Why do you even want to know?
>
> Whether the app is running on the phone vs desktop?
>
> * to use different QML since the same QML code cannot (yet) work on both
> * to use the content-hub for getting a file vs doing a regular file open dialog
> * to load contacts from the content-hub vs from another source that is desktop specific
> * to enable push notifications or not
> * to assume a different role (master or slave device of the same account)
Just so you know, the difference between a desktop and a phone is that when you unplug an external monitor and input
devices from your phone it is no longer a desktop, but a desktop stays a desktop.
If you're developing software *right now* making any other assumptions about phone vs. desktop, you're writing bad code
and breaking things in a highly undesirable way.
--
Stephen M. Webb <stephen.webb@xxxxxxxxxxxxx>
Follow ups
References
-
Find out if running on a phone
From: Michi Henning, 2016-01-10
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-10
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-10
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-10
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Thomas Voß, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Jani Monoses, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Jani Monoses, 2016-01-11