Pierre Hébert I would expect this script to work when set in an item event. It does however crash the launcher.
Pierre Hébert I would expect this script to work when set in an item event. It does however crash the launcher.
I guess the item isn’t passed…
LL.bindClass(“java.lang.Integer”);
var i=new Intent();
i.setClassName(“net.pierrox.lightning_launcher_extreme”,”net.pierrox.lightning_launcher.activities.Dashboard”);
i.putExtra(“a”,new Integer(12));
LL.startActivity(i);
]]>
< ![CDATA[
I guess you need to pass extra data to the intent (id of the item maybe? )
Oh, for the ‘pass an integer’ part you can use
i[“putExtra(java.lang.String,int)”](“a”,12);
]]>
< ![CDATA[
Indeed, the item is not given because the intent is processed as another event.
There is LL.runAction but at the moment it does not allow an item to be passed neither. I should be able to add a variation of this method with an Item argument.
]]>
< ![CDATA[
Yeah i tried the intent because the runAction wasn’t working. Maybe implement it as Data string? An item explicitely as argument is good too i guess.
]]>
< ![CDATA[
An explicit Item argument is easier and more clear to use, at least when you already have it in the event context.
]]>
< ![CDATA[
Waitng for it 🙂
]]>
< ![CDATA[
Tomorrow most probably 🙂
I have a list of bugs that I should be able to process tomorrow. As I am going to make big changes soon, I’ll publish an update before.
]]>
< ![CDATA[
Big changes again? Cool! Waiting for that too 😉
I don’t even have to ask what it is, it gonna be cool
]]>
< ![CDATA[
More on this soon 🙂
(hint: it has something to do with the editor UI)
]]>