KyungJoon Lee
now browsing by tag
API Suggestion
int getCurrentRotation()
returns rotation degree hopefully or just land/port mode(0/1).
We can deduce phone’s orientation by comparing desktop.getHeight()/getWidth().
But in the strict sence, it is not rotation index. For example, most of Android watch has the same width/height(LLx in watch???) I think this phenomenon can be happend in any other devices.
And can’t LL app know some infos like device’s resoltion, current navbar on/off state/navbar height, statusbar transparency/overlapping, which are all about screen sizes.
If LL itself knows those infos, please support LL or Android object can provide those infos directly.
]]>v.9.9.15
v.9.9.15
After returning from other desktops, first one was squized, (not just background image problem).
If I restarted LL app, OR just turned screen off and on,
original desktop was restored.
I have several desktops, but that one(windows7 mocking) which uses script features only showed that problem.
]]>Using script, I customized panel size/border/position, etc. When I run, it worked well. No problem.
But after just screen off and on, panel’s things all restored.
I repeated running script, verifying OK, turning off/on screen,. Results are alwasy same.
*.commit();
*.setSize/Position();
Don’t those methods record directly to LL’s item DB(?) whatever?
]]>Very wired result in script
Pierre Hébert Too many questions today~ I wish its last one.
Line 192: alert( folder.getContainer() );
Line 193: alert( folder.getContainer().getWidth() );
When running,
Alert poppop showed “Container 135” msg.
And then,
“At line 193: Wrapped java.lang.NullPointException (script_name#193)”
Above error happened. Very wierd.
Is there something you can guess the reason? That folder has width/height 0(default) size.
]]>tag in a script
item.setTag()
LL.setScriptTag()
a little delicate method name difference.
At first, I thought two methods do the same feature like persistent data storing, but one to a item, the other to global(?) LL.
API doc says,
setScriptTag (String tag)
Set a persistent tag data for the currently executing script.
does “currently executing script” have special meaning? ie, other scripts can’t see that LL tag? I thought LL is global object. However API seems to say this a global just to an script?
And both item tag and LL tag can have persitent data after reloading LL app, right?
]]>www.pierrox.net/android/applications/lightning_launcher/script/reference/…
Pierre Hébert your server is down, please restore it.
Probably is there anyone who has script API document zip?
]]>Scope
I’m making Window7 mocking template for uploading Play Store. Mine uses several scripts.
Questions:
1.
If a user already used self.foo variable in his scripts, and my template does too, then two self.foo variables interferes?
2.
How about script name?
(I could create a script with same name)
So if I want to distribute a temple with scripts, then should I myself consider something like specific name prefix?
]]>In LL, we can locate an item into dual position with landscape/portrait mode.
But I couldnt find a method to do it with script.
item.setCell(…);
item.setPosition(…);
Above methods doesn’t show something about dual mode.
In current script, is there no method?
]]>