Languages

Menu
Sites
Language
[wearable] Possibility of settings change

Hi,

Is there way to set the following settings by custom web application? :

- AOD ON/OFF

- Flight mode ON/OFF

- Bluetooth ON/OFF

- Wifi ON/Auto/OFF

 

I didn't find it in API... Thank you so much for ideas! 

Edited by: John Ixion on 16 Nov, 2017

Responses

3 Replies
Iqbal Hossain

hi, To open Settings app use 

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/setting',
                                              null, null, null, null, null);

tizen.application.launchAppControl(appControl, null, function() {
    console.log('launch application control succeed');
}, function(e) {
    console.log('launch application control failed. reason: ' + e.message);
}, null);

Moreover, you may open individually Wifi,  Bluetooth etc.  But i'm not sure about AOD and Flight. So you may use Settings in those case. 

BL, 

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/setting/bt_enable',
                                              null, null, null, null, null);

tizen.application.launchAppControl(appControl, null, function() {
    console.log('launch application control succeed');
}, function(e) {
    console.log('launch application control failed. reason: ' + e.message);
}, null);

Wifi, 

 

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/setting/wifi',
                                              null, null, null, null, null);

tizen.application.launchAppControl(appControl, null, function() {
    console.log('launch application control succeed');
}, function(e) {
    console.log('launch application control failed. reason: ' + e.message);
}, null);
Konvalinka

Thank you! So I assume, that changing of this settings is not possible in my own application? For example: Turn on airplane mode - inside application, not by showing another screen to user.

 

Because I'm developing task scheduler for Gear S3, which should automate some settings for specified time. So bad, that is not possible to do this kind of settings :(

 

Iqbal Hossain

Yeah sad... I have also checked on Native API... Hope these will be added on API in near future.