now browsing by tag
I have a second and final scripting question for today.
I’m trying to write a script that does one thing if LL is the default launcher, but another if Nova is the default.
I am now able to detect which launcher is the default, so I just need to call Nova with the correct parameters.
I currently have this:
intent = new Intent(‘com.teslacoilsw.launcher.ACTION’);
intent.setClassName(‘com.teslacoilsw.launcher’,
‘com.teslacoilsw.launcher.NovaShortcutHandler’);
intent.setComponent(new ComponentName(‘com.teslacoilsw.launcher’,
‘com.teslacoilsw.launcher.NovaShortcutHandler’));
intent.putExtra(‘LAUNCHER_ACTION’, ‘GOTO_SCREEN’);
intent.putExtra(‘PAGE_NUMBER’, 3);
LL.startActivity(intent);
This produces no error, but also doesn’t work. 🙁
The various Nova parameters are known to be correct. They work if I use Tasker to send them as an intent like this:
Action: com.teslacoilsw.launcher.ACTION
Extra: LAUNCHER_ACTION:GOTO_SCREEN
Extra: PAGE_NUMBER:3
Package: com.teslacoilsw.launcher
Class: com.teslacoilsw.launcher.NovaShortcutHandler
Target: Activity
Evidently, I’m not translating this correctly to the proper JavaScript methods.
Can anyone tell me how to map the Tasker Send Intent fields to their equivalent Javascript methods?
]]>Is there any way to detect whether LL is the currently active launcher; or, failing that, the currently configured…
I’ve googled the subject to death and scoured the API docs, but to no avail. I thought I had found the solution when I chanced upon LL.isPaused(), but no matter where I call that method, it always returns true.
]]>I have a Tasker job that calls an LL script.
The problem is that I’m not sure how to pass the result of the script back to Tasker. Simple success or failure is all that I need.
I’ve looked at calling a Tasker intent from LL to set a variable, but it’s not clear that this would run within the context of the task that called LL in the first place.
What’s the best way to send a variable from an LL script to the Tasker job that called it?
]]>Where is the full list of LL built-in variables?
The bindings page has a few examples, but where is the complete list? I can’t find it anywhere.
]]>I’m now a couple of weeks into LL usage and enjoying the experience.
LL does a lot of things that are impossible with other launchers, but conversely, it’s sometimes hard to do things with LL that are trivial with other launchers.
For example, how do I get icons in a folder to automatically rearrange themselves when I manually move one of them? Or even to move out of the way when I’m trying to drop an icon between two others?
I can’t find anything that governs this.
Thanks in advance.
]]>Well, I’ve now been a LL user for a few days and am mostly enjoying the experience.
I particularly like the object oriented inheritance model that LL uses, but…
From what do folders inherit their properties? I want to set a transparent background for all folder icons, but I can’t figure out how to do it. The global folder settings include things like icon style, where I have chosen stacking, but they don’t include the icon background.
I thought that folders would inherit their other properties from the desktop they are created in, but if I set a transparent icon background for the current desktop, newly created folders don’t use it.
I’m working around this by making one folder the way I want it and then copying and pasting its style to all of my other folders, but I’d obviously prefer to just make this setting at the highest level and then have it automatically inherited.
What am I missing?
]]>Is there an easy way to move a page of the desktop to a different area?
Hello.
I’m a new Lightning user and have been playing with the launcher for just a couple of days, so I’m still getting used to things, but already digging the advanced features, such as bindings, scripts and Tasker integration.
Anyway, I have two apps on my phone, both called Authenticator. One is from Google and the other is from LastPass. They are used to provide codes for 2 factor authentication. The problem is that only the Google app shows up in the app drawer, perhaps because that one was installed first.
Is there a way to get the other app to show up? I could create a Tasker task to launch it and call that from Lightning as a shortcut, but I’d obviously rather just, well, run it directly.
Have I encountered a bug, or is this my unfamiliarity with the launcher showing?
]]>