KyungJoon Lee

now browsing by tag

 
 

API Suggestion

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.

]]>

Windows 7 desktop template

Windows 7 desktop template

http://youtu.be/bKBJNQlnCKY

Update: I uploaded it in playstore, keyword: lltemplate

It uses LLx’s script features for maintaing folder(Windows START popup)’s relative position in both land/port mode. So you have to have LLx and beta.

1.

Load uploaded template as your additional desktop.

2.

First run script z.alogblog.Util.arrangeTemplate in LL’s script menu. (TWO run should be done in land/port mode respectively. This limit is from LLs script feature)

3.

It asks 3 questions, width and height of START popup window(at first just use default), and position of START button. If you want it to LEFT, press “Cancel”.

LEFT moving script doesnt work perpect. (technically setCell() didnt work). Anyway, if you select LEFT, you have to exchange START and date’s item position manually.(Not hard)

4.

During running above script, you may have to see “Error popup”. Then, run it again with date folder opened. This might be LL’s script implementation problem, I guess.

5.

In START popup, you see my picture in circle. Don’t delete that item :). It has some feature. If you like, just replace icon with your rectangular picture, then it will show in a circulr frame.

6.

Replace your calendar widget in date folder.

]]>

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.

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

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

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

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

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.

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?

]]>

When I set an event to “Swipe down/up..”(in desktop level), LL didn’t react to event, although event to the double…

When I set an event to “Swipe down/up..”(in desktop level), LL didn’t react to event, although event to the double finder swipe worked.

]]>