语言

Menu
Sites
Language
Gear S3 App - Power Save Mode

Hi,

Does anyone know how to call the Gear S3 'Power Saving' item in the settings menu directly?

I want to put my Gear S3 into power saving mode using Web API or Native API and call the app already developed by Samsung. Or at least to create my own app that disables all functions apart from:

Calls

Messages

Notifications

Limit max power

响应

1 回复
Safwan

To let the user chose power saving mode you may Launch ‘Settings’ app from web application using Application API.  Application Id of device settings application: org.samsung.clocksetting

 

launchSettings.js

function onSuccess () {
alert('Please select Power saving Mode');
console.log(“Launched Settings”);
}


function onError () {
console.log(“Cannot Launch Settings”);
}

var appId="org.samsung.clocksetting";
tizen.application.launch(appId, onSuccess, onError);

 

Application Launch privilege is required to launch Settings from web app.

config.xml

<tizen:privilege name="http://tizen.org/privilege/application.launch"/>