ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17585
Find out if running on a phone
I’d like to find out (at run time, from C++), whether I’m running on a phone/tablet as opposed to a desktop.
Is there any way to do that?
Checking for Arm isn’t good enough, because a Chromebook runs on Arm, but isn’t a phone or tablet.
Or, to put it differently, I’d like to find out whether I’m running in a touch environment as opposed to a desktop environment.
Does anyone have any ideas?
Thanks,
Michi.
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Follow ups