| Reply | « Previous Thread | Next Thread » |
|
Hi,
I want to know, whether my script is running in Touch UI device or not. Any ideas how to do this? e32.pys60_version() won't work, because I can run both 1.4.x and 1.9.x in 5th ed device. e32.s60_version_info() won't work, because it only tells which SDK was used to compile "the application" == python runtime or shell. I can run apps made with 3.2 SDK in 5th ed device. I could check screen resolution, but that's not future-proof at all. I could detect, whether current device screen resolution is similar to 5800 and make a guess that this device could be a Touch UI device... but I could never be 100% sure. Any more ideas? For PyS60 1.4.x branch for the moment, if possible. For non-touch devices I can use full-screen, but for touch devices I need to leave Options menu visible ![]() Wondering, --jouni |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
I would also say to detect screen resolution, but as you mentioned, you would never be sure. As far as I know, there is no way to detect exactly in current release. Although, should be easy to implement a function for that, so I hope it will be in 1.9.3
![]() BR, Rafael. |
|
From a C++ point of of view it is done via the AknLayoutUtils::PenEnabled()API.
Note that this API was not exported in FP0 (MR) devices, but there is a workaround here http://discussion.forum.nokia.com/fo...d.php?t=149512 On this forum we prefer you to use this http://wiki.forum.nokia.com/index.php/Wiki_Home rather than this http://blogs.msdn.com/oldnewthing/ar...4/9856634.aspx |
|
Quote:
https://garage.maemo.org/tracker/ind...=854&atid=3204 While browsing manual, found another solution: sysinfo.os_version() should return "the operating system version number of the device as a three element tuple (major version, minor version, build number).". It's still not quite good enough, there could be touch ui devices based on 3.x branch and non-touch devices based on 5.x branch, but for now it's good enough. ...I mean, if major is 5 or more, then I use "large", otherwise "full"... Thanx, --jouni |
|
Quote:
import antigravity |
| ashwinurao |
| View Public Profile |
| Find all posts by ashwinurao |
|
Quote:
Happy to hear that R&D team is following the DiBo ![]() Cheers, --jouni |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
For future reference, appuifw.touch_enabled() has been introduced with PyS60 1.9.3. How to check for touch support in Python.
|
|
Quote:
![]() Cheers, --jouni |
|
Quote:
[#3578] Identify whether device has Touch UI or not https://garage.maemo.org/tracker/ind...=854&atid=3204 Quote:
Bother, --jouni guessing you're using some other non-public system to handle feature requests and defect reports |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Identify model of mobile via Bluetooth Service Records?? | pankaj_shukla | General Discussion | 2 | 2008-10-12 20:39 |
| Fire key on touch screen device? | girdhar | Mobile Java General | 1 | 2008-03-25 10:44 |
| Funambol DM server, E62 and 9500 device manager app | rickmorris | OMA DM/DS/CP | 1 | 2008-02-26 06:36 |
| Installing Ethernet Plugin on a second device | chenfi | Symbian Tools & SDKs | 0 | 2005-12-19 12:40 |
| Bluetooth Security: What exactly is an untrusted device? | rahulmcs | Bluetooth Technology | 1 | 2005-12-02 07:26 |