Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2072] Android: Network change event fired unexpectedly on first launch

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-06-02T13:39:13.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sSprint 2011-22
ComponentsAndroid
Labelsandroid, android_refactor, defect, regression, tbf-1.7.0
ReporterThomas Huelbert
AssigneeOpie Cyrus
Created2011-04-15T03:09:41.000+0000
Updated2011-06-02T13:39:13.000+0000

Description

1.Platform>Network
results: change event reports itself as having been fired.
2.back buton, retry test case
results: change event not fired.

notes test again an no such result. uninstall/reinstall (or force quit) relaunch and see it again.

Comments

  1. Opie Cyrus 2011-06-01

    Network listener is attached the first time the event listener for the 'change' is added or when the application (root activity) is resumed. In the KitchenSink example, the first time the test is opened the registration for the 'change' event causes the network listener to be initially attached and the first event to be fired. If you back out of the test and then open it then you will not see a new 'change' event because the network listener is still attached and the network state has not changed. If you were to hit 'home' when inside the network test, turn on airplane mode and then come back into KitchenSink you would see that the network state has changed due to a new 'change' event that fired when the airplane mode was enabled or disabled. Verified behavior on Droid 2(2.2)
  2. Natalie Huynh 2011-06-02

    Working as expected, not a bug

JSON Source