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!
« Trying to set my home in Landscape mode (Previous Post)
(Next Post) How do I make a folder back ground transparent? »
You can create a TextView as custom View and then set the text with Html.fromHtml(htmlText)
Lukas Morawietz I only understand a couple of those words 🙂
Is there a tutorial (for dummies) somewhere?
Thanks for the almost instant response!
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.
Awesome, this is definitely enough to get me started!
You are my favorite.
holy crap… it actually worked! I can’t believe it! I thought it was going to be much more complicated than that!
Thanks again!
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.