I'm testing my Android app on Cyanogen 9.1 (Android 4.0.4) and I found a weird behavior.
My app contains a BroadcastReceiver that listens to android.net.conn.CONNECTIVITY_CHANGE. According to Android documentation, this intent is not sticky.
However, when the app starts on CM9.1, it always receive a CONNECTIVITY_CHANGE intent.
Indeed, this intent is listed by the system as sticky:
>adb shell dumpsys activity
Sticky broadcasts:
...
* Sticky action android.net.conn.CONNECTIVITY_CHANGE
...
On other Android versions I tested on (for instance 4.2.1 stock Android on my NX4), the intent is not sticky and not received at startup, which is the correct behavior.
Is this a bug in Cyanogenmod ROM? Is there a way when receiving a sticky intent to know that it's an old one, not resulting from an actual recent event?
Thank you