Are there any LL applets/scriptlets (whatever you call them) that would allow html (or some sort of markup language)…

Are there any LL applets/scriptlets (whatever you call them) that would allow html (or some sort of markup language) on the homepage with data from tasker? 

I have tried widgets like minimal text, zooper, uccw, (and others) and they all only seem to support plain text updates. Zooper DOES have its own markup language, but unfortunately it won’t parse/render it if it is passed in from tasker – it only shows the raw markup.

I would love to be able to post data on the homescreen from Tasker where I could change colors (etc) depending on certain tasker parameters. 

Thanks!

6 Commentsto Are there any LL applets/scriptlets (whatever you call them) that would allow html (or some sort of markup language)…

  1. You can create a TextView as custom View and then set the text with Html.fromHtml(htmlText)

  2. Lukas Morawietz I only understand a couple of those words 🙂

    Is there a tutorial (for dummies) somewhere?

    Thanks for the almost instant response!

  3. 1. Create a new custom View

    2. Set this in the create Script event:

    LL.bindClass(“android.widget.TextView”);

     textView = new TextView(LL.getContext());

    return textView;

    3. Create the following script:

    LL.bindClass(“android.text.Html”);

    textView.setText(Html.fromHtml(LL.getEvent().getData()));

    4. Run that script from tasker with the Html as Script Data.

  4. Awesome, this is definitely enough to get me started!

    You are my favorite.

  5. holy crap… it actually worked! I can’t believe it! I thought it was going to be much more complicated than that!

    Thanks again!

  6. Be careful: these scripts are quick and dirty: they use an implicit global variable, which may interfere with other scripts, and prevents that you can use them more than once per setup.

    Anyway, I’m glad I could help you.

Leave a Reply

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