May, 2014
now browsing by month
Is it possible to dim background if a folder is open?
I’d like to use setVisibility on certain icons, but know absolutely Nothing about scripting. Can anyone help?
I’m new in Lightning Launcher, how I can have unread count for whatsapp and other apps… Thanks for the help!!
Almost the most expensive app ever!
Dynamic Text Time Failing To Update.
Just arrived at Malaga airport and almost missed the flight because the Dynamic Text does not update when you change time zone!
Scenario:-
In UK and dynamic text time on my lockscreen is aligned with the time on my phone. All ok.
Turn phone off, get on plane and fly to Spain.
Turn on phone at destination.
Actual time on phone is auto updated to Spanish time, but the Dynamic Text still remains at UK time. So at this point the dynamic text is now an hour behind. I never realise this as I have the status bar hidden.
It looks to me like the dynamic text is updated the instance the phone is turned on, in the new time zone, BEFORE the phone has picked up the roaming network and re-set the actual android phone time.
Exactly the same happened when I returned home – got off the plane in the UK and it was now an hour in front, showing Spanish time.
Any ideas ? If it wasn’t for my persuasion this would have cost me an extra 130 Euros..
]]>Not sure if bug, unexpected behavior, or time for a suggestion.
The container returned by LL.getEvent().getContainer() run from a script launched in the resume event is the one that ‘opened’ the one that have the script.
In the test I made, in a desktop, when you go to the desktop from a shortcut inside a different desktop, the container is that one.
When you use the two fingers swipe, or just open a different app and go back the container is the -1 one.
How this should work? Return the opened container? Leave it as now? A different getContainer function?
]]>Finally the resumed event was added, so here is my lock screen.
Finally the resumed event was added, so here is my lock screen. Maybe you don’t believe, but I have this lock screen (two scripts) since the alpha! I even posted the scripts once (now they are improved) And that’s why I can publish it now, I just managed to have some free time to record the video.
Story: I read once that pattern/pin/password as lock screen are not really secure in the fact that the fingerprint tells you the path/numbers/letters.
It was said on a research, but unfortunately I couldn’t find it (if someone know, write here the link)
In the research, the conclusion was that the ‘best’ lock screen (in the fingerprint part) will be one with a color password, colors placed randomly on the screen so you just need to click the color password in order. Since the position of the colors is random, even if you know where exactly the user clicked, you can’t know which colors did they click.
The only thing I saw was the app ORBIE
This lock screen is made of two scripts: one that unlocks the screen if you click the items in order (configurable, uses the id of the items) and the other just place the items in random cells (configurable too).
Since the items can be whatever you want, you can make the lock screen with apps, pictures, colors, shapes…
Of course you can use them separately, perhaps you just want the lock sequence
Instructions:
– Place some items in cell mode.
[If you want to move them randomly]
– Set the resumed event to run the ‘randomize’ script. If you want some items to not move, place them in free mode
– IMPORTANT: configure the script with the available cells where you want to place the items.
[The lock part]
– Set the click event of the items (all that will be part of the ‘pattern’ ) to run the ‘locksequence’ script.
– Click one item to set your first password
– To change it just perform the sequence while unlocked and follow the instructions. (The time to wait is configurable)
—————————————
Locksequence script
—————–
var interval = 2000; /* time in milliseconds to wait until new lock set*/
var tag = LL.getScriptTag();
/* in case they don’t exist*/
if( tag != undefined ){
var data = JSON.parse( tag );
}else{
var data = new Object();
}
if(! (“a” in data)){
data.a=0;
}
if(! (“secuence” in data)){
data.secuence = [];
data.secuence[0]=0;
}
var item = LL.getEvent().getItem();
/* to notify the click*/
item.setVisibility(false);
setTimeout(function(){ item.setVisibility(true) ;},50);
if(data.a<0){
/* The set procces: negative numbers*/
data.secuence[ -data.a -1]=item.getId();
–data.a;
data.timeout = setTimeout( function(){isDone(data.a);},interval);
}else{
/* The unlock procces: positive and zero numbers*/
if(item.getId()!=data.secuence[data.a]){
/* wrong*/
data.a=0;
}else{
++data.a;
if(data.a==data.secuence.length){
/* good*/
data.a=0;
/* unlock or set new one*/
if(LL.isLocked()){
LL.unlock();
}else{
reset();
}
}
}
}
/* if no data found*/
if( data.secuence[0]==0 ) reset();
save(data);
function save(tosave){
LL.setScriptTag( JSON.stringify(tosave) );
}
function reset(){
if(!confirm(“Set a new lock?”))return;
data.secuence = [];
data.a= -1;
Android.makeNewToast(“Click the items in order\nWait “+ interval/1000 + ” second after the last click to apply” , false ).show() ;
}
function isDone(old){
var now = JSON.parse( LL.getScriptTag() );
if(old!=now.a)return;
now.a=0;
Android.makeNewToast(“Lock set with “+ data.secuence.length + ” steps”, false ).show();
save(now);
}
—————————————
Randomize script
————–
//Cell: [first position , size ]
var h = [1,3];
var v = [1,3];
var all = LL.getEvent().getContainer().getItems(); //Or use the container you want
var items = [];
var len = 0;
for(var i=all.getLength()-1;i>=0;–i){
var p = all.getAt(i);
if(p.getProperties().getBoolean(“i.onGrid”) ) items[len++]=p;
}
var free = new Array();
if(len > h[1]* v[1] ){
alert(“WARNING: a lot of items, or a small layout”);
return;
}
for(var i=0; i var sh = 0; var sv = 0; do{ sh=Math.floor(Math.random()* h[1] ); sv=Math.floor(Math.random()* v[1] ); } while(free[sv* h[1]+sh]!=undefined) free[sv* h[1]+sh]=0; sh+=h[0]; sv+=v[0]; items[i].setCell(sh,sv,sh+1,sv+1); }
Help, I can’t see missed calls or message notification on my home screen. I use llx
What is this error?
What is this error?
It’s from a script run on the new resume event of a folder.
]]>Universal bug fix guide
1. Restart LL
2. Clear LL’s cache
3. Restart device
4. Ask the community
5. Clear LL’s data (backup before)
6. Reinstall LL (backup before, if not done in 5)
7. Perform a factory reset (careful, all data on your phone will be lost)
If a step of 5-7 solved your problem try to restore your backup. When the bug occurs again, do the step again, which solved your problem, and don’t restore any backups, but recreate your layout.
]]>