Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9864] Android: Ti.Network.NETWORK_XXXX property is null

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-07T00:24:15.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 3.0.0
ComponentsAndroid
Labelscore, module_network, qe-review, qe-testadded
ReporterSatoshi Tanaka
AssigneeNeeraj Gupta
Created2012-06-20T22:10:17.000+0000
Updated2014-03-13T17:45:14.000+0000

Description

On android, Ti.Network.NETWORK_XXXX property is null. Test code is below:
Ti.API.info('NETWORK_NONE : ' + Ti.Network.NETWORK_NONE);
Ti.API.info('NETWORK_WIFI : ' + Ti.Network.NETWORK_WIFI);
Ti.API.info('NETWORK_MOBILE : ' + Ti.Network.NETWORK_MOBILE);
Ti.API.info('NETWORK_LAN : ' + Ti.Network.NETWORK_LAN);
Ti.API.info('NETWORK_UNKNOWN : ' + Ti.Network.NETWORK_UNKNOWN);
result(adb logcat):
I/TiAPI   ( 1070): NETWORK_NONE : undefined
I/TiAPI   ( 1070): NETWORK_WIFI : undefined
I/TiAPI   ( 1070): NETWORK_MOBILE : undefined
I/TiAPI   ( 1070): NETWORK_LAN : undefined
I/TiAPI   ( 1070): NETWORK_UNKNOWN : undefined

Comments

  1. Satoshi Tanaka 2012-07-01

    Created PR #2494 to resolve issue. https://github.com/appcelerator/titanium_mobile/pull/2494
  2. Anshu Mittal 2012-08-16

    Verified on: SDK:2.2.0.v20120816212512 Studio:2.1.1.201207271312 Devices: iOS simulator, Android Emulator, Samsung galaxy note(android v2.3.6) Ti.Network.NETWORK_XXXX property is not null.
  3. Shyam Bhadauria 2012-09-07

    Re-opening to edit label
  4. jithinpv 2013-11-25

    Anvil test case added. PR link: https://github.com/appcelerator/titanium_mobile/pull/5011

JSON Source