[TIMOB-9864] Android: Ti.Network.NETWORK_XXXX property is null
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-07T00:24:15.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 3.0.0 |
Components | Android |
Labels | core, module_network, qe-review, qe-testadded |
Reporter | Satoshi Tanaka |
Assignee | Neeraj Gupta |
Created | 2012-06-20T22:10:17.000+0000 |
Updated | 2014-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
Created PR #2494 to resolve issue. https://github.com/appcelerator/titanium_mobile/pull/2494
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.
Re-opening to edit label
Anvil test case added. PR link: https://github.com/appcelerator/titanium_mobile/pull/5011