OK I want to lengthen the runtime I can get, which means I want to be able to switch the cell radio off but still have the Ant on. I don't think this is possible but it is desirable and if I was using Wifi or bluetooth it would be possible. I could go to Airplane mode then re-enable Bluetooth and WiFi leaving the cell off. How do I switch the Ant system back on?
What realy makes this anoying is that I have a test phone with no sim and it's cell radio standby power is even worse than when it has a sim in it. This realy is anoying as it looks to take out somthing like 30% of the potential runtime when data-logging.
Currently ANT is disabled when Airplane mode is enabled, but we have been planning to make this configurable. I will make sure this is included in the next update of the ANT Radio Service so you can make use of it.
OK I have got good updates now, not sure what went wrong.
It looks to work as expected. For now I have decided to use it like this.
There is a preference to keep Ant enabled when entering airplane mode. If this is selected then I check for 'ant' in the radios list and remove it at the point where I start my service and initalise ant. When my service is shutdown I add 'ant' back into the list if it's not there. I am leaving it for the user to set airplane mode using the standard methods once they have the ant system working. I tried putting the phone into airplane mode myself but it's more tricky to get right and messing it up would be bad. I prefer leaving it to the user as a seperate step, there is no way they can say they did not know what it meant if they do it.
You should only be adding and removing the "ant" entry, and leaving the existing entries as they were. Forcibly setting the entire string is not recommended as the other devices may have already been removed from the list, or there may be a radio you do not know about (ie you break NFC).