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.

]]>

8 Commentsto Guys need some help.

  1. Anonymous says:

    < ![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).

    ]]>

  2. Anonymous says:

    < ![CDATA[

    To get the id you can use a small script (a script to write scripts, funny…):


    alert(LL.getScriptByName(your_script_name).getId());

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Pierre Hébert


     that’s right, but it’s not gonna help inside of an app…

    ]]>

  4. Anonymous says:

    < ![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.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Pierre Hébert​ Thanks!

    ]]>

  6. Anonymous says:

    < ![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 🙂

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Pierre Hébert (sorry if this is a too soon question but: what is exactly the script spinner? The drawer? )

    ]]>

  8. Anonymous says:

    < ![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.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *