[AC-3110] Android: Titanium.Network change event not fired when changing network status
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-06-05T16:48:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, api, module_network |
Reporter | Satoshi Tanaka |
Assignee | Mauro Parra-Miranda |
Created | 2012-05-17T22:32:24.000+0000 |
Updated | 2016-03-08T07:48:10.000+0000 |
Description
Problem
On android device, Titanium.network change event is not fired when I switch Wi-fi status.
I add ti.android.debug parameter on tiapp.xml, so titanium recognizes the changes of network status.
I think titanium know network status change, but not fired.
D/TiNetListener( 1826): (main) [26668,26717] onReceive(): mNetworkInfo=NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: false CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true mOtherNetworkInfo = [none]
Test
* install KitchenSink on my device.
* open Platform -> Network window.(KitchenSink/Resources/examples/network.js.)
* change Wi-fi Status.
Comments
JSON Source
DUP issue.