now browsing by category
setTimeout()
who knows how the function works, especialy when switching off the display?
I have set a
setTimeout(“callback”,30*60*1000). // 30 Minutes
When the phones display is off the timer is not fired.
How can i get a more reliable solution?
]]>Is there more comfortable way to edit scripts – telnet or by remotely editing from a linux system?
The work is a little bit hard, editing directly on the phone.
at the moment i send the script from a PC to the phone.
]]>Hello all Need Help
Hi
I want to use klwp for live wallpaper.
But not for the hole Desktop I want to add it to a panel. Is that possible?
Regards
Chris
]]>Timers
It is possible to set timers using setTimeout. Pay special attention to clear these timers when needed, LL won’t do this for you. If you don’t clear timers, you may severly increase CPU use and battery consumption.
I have created a timer with setTimeout for 5 Minutes.
When i switched off the display the timer is not executed in deep sleep mode. I expected that the CPU would have been awoken after the specified time to execute some things and sleep after that.
is that right?
When the display is switched on again the timer seemd to be executed after a time.
Can someone explain whats going on behind the curtains?
the Code:
LL.bindClass(“android.provider.Settings”);
var myItem = LL.getEvent().getItem();
var myId = myItem.getId();
function setTimeout15Seconds() {
Settings.System.putInt(LL.getContext().getContentResolver(),Settings.System.SCREEN_OFF_TIMEOUT,15*1000);
Android.makeNewToast(“setting timeout to 15 sec”,true).show();
myItem.setTag(“timeout”, 0);
}
function setTimeout5Minutes() {
var timeout = myItem.getTag(“timeout”)||0;
if (timeout == 0) {
Settings.System.putInt(LL.getContext().getContentResolver(),Settings.System.SCREEN_OFF_TIMEOUT,5*60*1000);
myItem.setTag(“timeout”, setTimeout(setTimeout15Seconds, 5*60*1000));
Android.makeNewToast(“setting timeout to 5 min”,true).show();
}
}
setTimeout5Minutes();
]]>Hey Chris here you go, so I think my problem is the understanding of stop points, they are actually barriers and…
Hey Chris here you go, so I think my problem is the understanding of stop points, they are actually barriers and need to be placed on desktops not around the panel, correct?
]]>Still wip, trying to figure out stop points.


i want to change the “DiSPLAY TIMEOUT” from scripting.
Settings.System.SCREEN_OFF_TIMEOUT, time);”
how should be done in LL
]]>How can I restore the default android lock? What does the ‘tap and cancel’ procedure mean? …
I messed up and found myself with an ‘unlockable’ lock screen not yet locked 🙂
Thankx a lot!
]]>How do I set the default icon style for a desktop – i.e. no label, shadow, etc.?
I remember there used to be “Items” in the Desktop settings menu – but that’s gone and can’t find it anywhere else…
]]>
D5 Creation