now browsing by category

 

setTimeout()

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?

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

Hello all Need Help … how do I Start Tap in KLWP ….. I have wall that’s working well in Nova… I want to it to work on LLX. .. but the tap is not working .. Shortcut in KLWP .. Please Help

]]>

Hi

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

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.

Still wip, trying to figure out stop points. In the second pic, the panel I want it to stop right there but it keeps going, not quite all the way to the left side but right over the other widget, what settings do I need to make it stop right were it is?

]]>

i want to change the “DiSPLAY TIMEOUT”  from scripting.

i want to change the “DiSPLAY TIMEOUT”  from scripting. I found that it should work with somethinthing like “android.provider.Settings.System.putInt(getContentResolver(),

            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?  …

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.?

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…

]]>