Hey guys.

Hey guys. I need a help. I need to send data from a native java app to llx. I know it is possible with tasker which I presume should be accomplished using intents. Pierre Hébert​ can you please give the intent details? I like to try firing it from my app so llx receives the data and processes it in a script.

]]>
« (Previous Post)
(Next Post) »

3 Commentsto Hey guys.

  1. Anonymous says:

    < ![CDATA[

    This is JavaScript code, but you can adapt it easily. Make sure you write the correct id and put in data a string



    var intent=new Intent().getIntent(“#Intent;component=net.pierrox.lightning_launcher_extreme/net.pierrox.lightning_launcher.activities.Dashboard;i.a=35;end”)//’launch a script’ shortcut


    intent.putExtra(‘d’,LL.getCurrentScript().getId()+”/”+data);//which script and data

    ]]>

  2. Anonymous says:

    < ![CDATA[

    This is correct.


    “a=35” is an integer extra, the llx action code for run script, where “d” is the data for the run script action.


    In Java you can split everything this way:


    Intent intent = new Intent();


    intent.setComponent(new ComponentName(“net.pierrox.lightning_launcher_extreme”, “net.pierrox.lightning_launcher.activities.Dashboard”));


    intent.putExtra(“a”, 35″);


    intent.putExtra(‘d’,LL.getCurrentScript().getId()+”/”+data);//which script and data



    Action codes are not documented (not public yet) and as such may change, but this is nevertheless very unlikely (need to keep compatibility with existing setups of course).

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Wow thanks to both.. Will try this.

    ]]>

Leave a Reply

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