I've created an Android app which connects to an ANT+ speed sensor for cycling. I create the PCC and register for speed updates which works fine.
When I change the orientation of my device I save the reference to the pcc in a fragment and restore it when the app returns in it's new orientation. The pcc is restored successfully but soon after the reference to the pcc is set to null (not by me).
Anyone have any idea why this might be happening?