Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3110] Android: Titanium.Network change event not fired when changing network status

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2012-06-05T16:48:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, api, module_network
ReporterSatoshi Tanaka
AssigneeMauro Parra-Miranda
Created2012-05-17T22:32:24.000+0000
Updated2016-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

  1. Davide Cassenti 2012-06-05

  2. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source