*v10.4b1 beta”
This is a beta for script lovers. It will dramatically enhance scripting capabilities with two new features.
The first is the possibility to create shortcuts (and remove them). The good thing is that you can specify custom intents for more dynamic interactions with other apps. New items are currently limited to shortcuts, more to come if needed
The second (and best) feature is the ability to manipulate images through scripts. This includes creating images, drawing on them using a subset of the Android Canvas APIs and setting these images as icons, item background or folder window background. I hope that performance will be enough for animations.
There are also a couple of bug fixes. I am sorry for peoples on the stable version, you will need to wait for the release to benefit from these bugfixes 🙁
A few hints on drawing with script: http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=drawing_with_script
As usual make a backup before to play with these new things, I will be mostly offline during a few days…
]]>
< ![CDATA[
This
will
be
Awesome!
😀
]]>
< ![CDATA[
Is Intent a string or class? I see no details in the wiki except the link to http://developer.android.com/reference/android/content/Intent.html
]]>
< ![CDATA[
This is an Android class with a direct mapping on the JavaScript side. You can create an instance like this:
var intent = new Intent();
Then use methods such as setAction() or addCategory.
I will have to add the Uri class though, I think it will be missing.
]]>
< ![CDATA[
<3
]]>
< ![CDATA[
I have to start to learn android programming:-)
]]>
< ![CDATA[
Tested: alpha is perfectly smooth in animations. Card style coming soon 😉
]]>
< ![CDATA[
Pierre Hébert what about sth like getintent() ?
]]>
< ![CDATA[
Perhaps this is a bit hard to do, not sure how icon packs work internally, but how about the ability to get an icon directly from an icon pack? Will it be somehow possible?
]]>
< ![CDATA[
I was considering the creation of Image objects from files. It would be possible to specify an icon pack or even a package, but the hard part is how to specify the image inside. Internally this is a “resource identifier” (an integer) and this value has not a meaningful name.
The only usable selection mechanism is the “component name”: some icon packs provide a table which maps a component name to a resource identifier. This is used to apply a whole icon pack over existing shortcuts. Unfortunately this table is far from being found in all icon packs.
]]>
< ![CDATA[
That’s understandable, but perhaps the new icon picker can also tells you that name (even if it is something like ‘icon_app_random_012’ ) to get it.
Don’t forget to answer Lukas’s question about getIntent 😉
]]>
< ![CDATA[
Lukas Morawietz done, with setIntent too 😉
]]>
< ![CDATA[
Actually this is something like 0x7f021234 (this can change). What use case do you have in mind ?
]]>
< ![CDATA[
The dynamic calendar icon from those icon packs which provide all of them.
To not need to place 31 items to copy their icon.
Edit: I know this will mean that probably you will need a script for each icon pack, but a script with an array with all those numbers is not really expensive to change I think.
]]>
< ![CDATA[
Pierre Hébert nice, when is the update likely to come?
]]>
< ![CDATA[
Lukas Morawietz I don’t have real plans, but I can make a snapshot tomorrow (late) or Friday if needed
TrianguloY I am not sure to follow you, I think I missed something. Do you need to get the list of icons provided by an icon pack in order to browse it, or something else ?
]]>
< ![CDATA[
Pierre Hébert: The idea is to set the icon of an item taken directly from an icon pack.
Right now we can 1) take the icon of a existing shortcut and 2) create our own icon with the canvas api.
In the post about the dynamic calendar icon what [can’t remember the name now] wanted is to change the icon of the calendar app from the icon pack (which internally has 31 icons with the calendar and a ‘1’, a ‘2’, etc)
I thought about make a script to run in the load event to check the day and change the icon.
The problem? Right now we will need to add 31 items with the 31 different icons to get them.
That’s why I suggested the ability to get an icon from an icon pack, something like
Image LL.getIconFromIconPack(String IconPackName, Int IconIdentifier);
]]>
< ![CDATA[
Snapshot…this is as awesome and exciting as Minecraft! lol
]]>
< ![CDATA[
The key is to get this identifier. This is not user nor developer friendly. I will try to add this method with a string as argument, and lookup the resource name/id. I think this can be done.
]]>
< ![CDATA[
Finally tried the beta. Alpha works great. Seems all property changes are handled better, faster, more stable. Seems a bit more fluent overall. Great!!
]]>
< ![CDATA[
Pierre Hébert: or perhaps you can do it with applications.
With the new icon picker we can see the name of the files, that will be a good string to use.
This way we will also take icons from android…interesting.
]]>