Hi, I've a datafield that works with an ant device. Beacause resuming from sleep delete the ant configuration, I've added in the onUpdate a check that reinitialize the ant channel if the last message is more than 2 seconds old. The problem is that if I open my datafield, then I go back to the home screen, after a few seconds the GArmin (not the app, the full device) freeze itself. This appens only when there are no any message incoming and I think it's because I try to reinitilize the ant channel while not in foreground.
So my question is: how can I detect when the app loose the foreground (onHide() doesn't work ) so that I can block the reinitialization of the Ant channel until back to foreground (the onShow() seems to work properly)?
I'm using the SDK 2.4.x
Thanks!