Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

PCC randomly set to null in Android

Rank

Total Posts: 1

Joined 2014-02-19

PM

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?