I want to lern myself  scripting in ll and have mastered the first examples.

I want to lern myself  scripting in ll and have mastered the first examples.

With the following code I intend to call a script by tapping an icon and the email app is called with a fixed receiver.

But it will not work anyway with handing over of the receiver list:

#####################################

var emailIntent = new Intent(Intent.ACTION_SEND);

emailIntent.setData(Uri. fromParts(“mailto:”, “xxx.xxx@web.de”, null));

emailIntent.setType(“text/plain”);

adr = [“xxx.yyy@web.de”];

emailIntent.putExtra(Intent.EXTRA_EMAIL , adr );

emailIntent.putExtra(Intent.EXTRA_SUBJECT, “von meinem Handy verschickt”);

LL.startActivity(emailIntent );

##############################

What am I doing wrong? The subject comes anyway.

]]>
(Next Post) »

4 Commentsto I want to lern myself  scripting in ll and have mastered the first examples.

  1. Anonymous says:

    < ![CDATA[

    I can’t tell you exactly what the problem is, I didn’t check the whole android API



    But this works, it will help I hope


    var emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(


    “mailto”,”abc@gmail.com”, null));


    emailIntent.putExtra(Intent.EXTRA_SUBJECT, “Subject”);


    emailIntent.putExtra(Intent.EXTRA_TEXT, “Body”);


    LL.startActivity(Intent.createChooser(emailIntent, “Send email…”));



    (Adapted from http://stackoverflow.com/questions/8701634/send-email-intent)

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thank you – works fine.



    I found an option in LL, that it seems to be possible to pass a variable to a Script. I can’t find an example how to access the variable in the Script. Can you help?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    You can’t pass variables, but you can pass a string. You can access it with LL.getEvent().getData();

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thanks, that works

    ]]>

Leave a Reply

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