Guys need some help.
Guys need some help.
In my app I have written the code below from Lukas Morawietz to call and pass a data to LL script:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setClassName(“net.pierrox.lightning_launcher_extreme”,”net.pierrox.lightning_launcher.activities.Dashboard”);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.putExtra(“a”,35);
i.putExtra(“d”,id-of-script + “/” + optional-data-string);
startActivity(i);
But I have no idea where to give what. I tried giving the script name in “id-of-script” but doesn’t work.
If name should not be given, then where to get the script id? and the data to be passed? A little help is appreciated.
]]>
< ![CDATA[
http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=import_a_script_directly_into_ll
Yes, you need the id to run a script, a name won’t be enough (names are not unique).
]]>
< ![CDATA[
To get the id you can use a small script (a script to write scripts, funny…):
alert(LL.getScriptByName(your_script_name).getId());
]]>
< ![CDATA[
Pierre Hébert
that’s right, but it’s not gonna help inside of an app…
]]>
< ![CDATA[
I believe that is not the problem for Arun kumar, my feeling is that he wanted to know first where the script id was found, whatever the place he would use it.
]]>
< ![CDATA[
Pierre Hébert Thanks!
]]>
< ![CDATA[
Pierre Hébert hehe i am not programmer, but i mean your script have bug…
alert(LL.getScriptByName(“My script name”).getId()); – this work for me 🙂
]]>
< ![CDATA[
Pierre Hébert (sorry if this is a too soon question but: what is exactly the script spinner? The drawer? )
]]>
< ![CDATA[
This is the “combo box” used to select the script, displayed in the drawer. Spinner is the (strange) Android word for the old combo box name. It will display something like “#01e: TheScript”, a bit like in the items hierarchy menu.
]]>