Hi, I implement some features in my apps that require specific System levels so need to understand what System level the target runs. For system level 7 is pretty straight forward, I just check the monkeyversion, like so:
var version = System.getDeviceSettings().monkeyVersion; system7 = (version[0] >= 5) ? true : false;
But for System 6,5,4 it becomes a bit more complicated
system6 = ((version[0] = 3 && version[1] >= 4) || (version[0] = 4 && version[1] >= 2)) ? true : false
- System 4 is CIQ version 3.2 for CIQ 3 devices and CIQ 4.0 for CIQ 4 devices
- System 5 is CIQ version 3.3 for CIQ 3 devices and CIQ 4.1 for CIQ 4 devices
- System 6 is CIQ version 3.4 for CIQ 3 devices and CIQ 4.2 for CIQ 4 devices
Isn't there an easier way to do this? Like e.g. getDeviceSettings().systemVersion