- But i get - Validation Result Report from Sumsung test command -Measured sleep current is higher than standard current while application is running - then app has NO privileges.
c) If possible please share the .wgt file (the last link you shared isn't available now anymore)
I have got else two rejects however i did minimal cpu work when screen is off ( pause).
I can send by email or share files with logs, video, and wgt file somebody here... to explain me why it is happen.
Nafisul Islam Kiron
Nafisul Islam Kiron
2016年 08月 09日 03:01
Hi, I see that you used Construct 2 for your project.
I deployed your project and it seemed to run just fine. I used some basic tool in Tizen IDE and it kinda looked okay.
I searched a bit and found that a few people who used that library had pausing issues. They recommended to use the "cr_setSuspended" method in the following way instead of in "onVisibilityChanged":
function onBlur() { cr_setSuspended(true); };
function onFocus(){ cr_setSuspended(false); };
Kilim A
Kilim ANafisul Islam Kiron
2016年 08月 09日 05:58
Thanks for answering me.
I hope you will not go a far from here.
1. From your answer - I see problem with mA when screen off - into Construct 2 ( it's js - I will share code without minify script).
2. Could you give that links with thats advice ,pls, if it possible?- "They recommended to use the "cr_setSuspended" method in the following way instead of in "onVisibilityChanged":
function onBlur() { cr_setSuspended(true); };
function onFocus(){ cr_setSuspended(false); };"
function onScreenStateChanged(previousState, changedState) {
if(changedState=="SCREEN_OFF" || changedState=="SCREEN_DIM"){
cr_setSuspended(true);
//Or Go to the Event sheet and Add the following actions:
//- System -> Set time scale -> 0
}
if(changedState=="SCREEN_NORMAL"){
cr_setSuspended(false);
//- System -> Set time scale -> 1.0
}
}
tizen.power.setScreenStateChangeListener(onScreenStateChanged);
//PAUSA
function onScreenStateChanged(previousState, changedState) {
console.log("Screen state changed from " + previousState + " to " + changedState);
if (changedState=="SCREEN_OFF") {
cr_setSuspended(true);
} else if (changedState=="SCREEN_NORMAL"){
cr_setSuspended(false);
}
}
// Sets the screen state change listener.
tizen.power
I share it before. Butthe postsdisappearsometimeswhen sending.
Thank you.
Another metod don't work in html ( with state)
Kilim A
Kilim A
2016年 08月 18日 11:50
//PAUSA
function onScreenStateChanged(previousState, changedState) {
console.log("Screen state changed from " + previousState + " to " + changedState);
if (changedState=="SCREEN_OFF") {
cr_setSuspended(true);
} else if (changedState=="SCREEN_NORMAL"){
cr_setSuspended(false);
}
}
// Sets the screen state change listener.
tizen.power.setScreenStateChangeListener(onScreenStateChanged);