Languages

Menu
Sites
Language
Emulator: networktype always NONE
function gotNet(network){
		console.log('networktype: ' + network.networkType);
		callback(network.networkType);
	}
    
    tizen.systeminfo.getPropertyValue("NETWORK", gotNet, netError);

 

network.networkType is always 'NONE' in the tizen emulator. Is there any way to change the networktype of the emulator? I can browse websites, so it definitely is not NONE.

Responses

6 Replies
Raghavendra Reddy Shiva

The emulator does not support WiFi connectivity (it uses host network to connect to the Internet).

See below link for more details on Emulator network architecture,
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/dev_env/emulator_using.htm

You might need to test such features on the Tizen device (the code works fine on the device though).

Raghavendra Reddy Shiva
Thomas Uher

Thank you very much for your reply. I do not have any problems connecting the emulator to the internet. The only problem is that the value returned by the API is always NONE. I hope it works on the device as I just submitted my app to the store...

Raghavendra Reddy Shiva

Yeah as the Wifi isn't supported, expecting it would retrun the default value as 'none' .

Anyways as said, it worked for me on device when tested with WiFi connection.

Alexander AVSukhov

Hello,

It works correctly on the device.

Marco Buettner

You can test it also on simulator....