TrianguloY
now browsing by tag
LL.startActivity( Intent(Intent.ACTION_VIEW, Uri.parse(“market://details?id=” +…
A one-line script to open the play store in the page of the app where the script was launched.
(Note, this was to test the new ComponentName, if you run it from something that is not an app it could make an error, checking it is not difficult but it won’t be a one-line script 😛 )
]]>I saw all your new ideas for the icon, and I like them (some more than others, for me simple is better in this case).
This is something easy, just the current icon but more flat (sorry for the poor quality). I decided to use the original lightning, I like it more.
Perhaps it gives you other ideas.


This post will start a discussion, so better read carefully (and comments if any)
Public community vs private community
This community is a private one, which means that if you want to see the posts you need to ‘ask’ permission to enter (even thought we (almost) always accept anybody who ask). This is something that some people don’t like to do, even I spend time deciding to ask or not.
I’m writing this with the idea to make a public LL community, (a new one, because Google don’t let you change the privacy after creating it) but of course this will need a process, and it has pros and cons.
[And of course Pierre Hébert’s agreement! ]
The process theoretically is simple: stop posting in this community and post instead in the new one. If someone wants to see the old posts they will need to enter here, but the sooner we do the change, the less this will happen, as more post will be in the new one.
This is the list of pros/cons I think it has, you can comment others too.
Pros:
More visits: as a public community everybody will be able to see the posts, what means that more people will be able to know this (and also they will be available in Google search)
Cons:
Spam/unwanted people: this is the bad part of being a public community. I hardly remember any spam post here, and I guess it’s because if you decide to ask permission to enter, someone will need to accept you and bots don’t normally enter private communities. But I don’t know the level of spam in others so I can’t compare.
Also remember that this way your posts will be publicly available in your profile page. (Which could be good or bad)
Intermediate solutions:
Create the new community and post there some posts to see how it behaves (keeping important ones here)
Keep this one for betas/discussions and use the other for ‘share your screen’, ‘finished scripts’…
I remember at least one post talking about this topic, but nothing came at the end, so I want to start it again…to see what will happen.
]]>Is there a way to manually (from script I mean) set an item in the ‘selected/focused/normal’ state?
If not…how about add it?
]]>This small script try to reproduce the dynamic icon (calendar) of nova launcher.
It will just set the custom icon of the defined item depending on the month. However it’s extremely easy to modify and perhaps it gives you ideas to another different script.
Instructions:
>Set it in the resume event of the container which has that item.
>Write the package name of the icon pack. This is not obvious and looks like com.pack.icons, you will need another app to know it. ( Pierre Hébert: will it be possible to show it in the new icon picker when long clicking the name of the icon pack? )
>Write the prefix of the 31 items containing all the different months. By default it is ‘ic_calendar_’ but it can change depending on the icon pack. Search items labeled prefix1 prefix2 prefix3 …
>Set the label of the item to identify it.
If you have another script in the resumed event you can copy this at the beginning without problem (or set it in the load event…it will only act once a month after all)
]]>Fast run tool V2
I’ve been improving my fast run tool script adding new functions and awesome features, now it’s time to publish it.
I also updated all my scripts in the wiki with the new syntax tag to be able to copy them better (if there is a problem tell me)
New features described in the page but the most important is the ability to use alerts/prompts/all! Thanks to Pierre Hébert , you showed me how to make it with your example of Script.getText() 😉 Thanks!
This is the bug I mentioned with the scrolling.
This is the bug I mentioned with the scrolling.
The script just place the item as far from the center as you scroll the container. And then it sets the container position to the origin.
When you release the finger while scrolling, what I expect is that the item stops suddenly, because of the setPosition, but instead it continues scrolling with the motion.
That’s why I suggested the container.stopScrolling()
I hope you now understand.
Note: you said you fixed a relative bug, it’s something related to the sides right?
When the free scroll is disabled and you go throw the side of a desktop now it don’t scroll back…something strange if you want to try it.
(The script I use here is in the first comment. But it’s the same as the other post)
]]>This is a wiki bug, perhaps I’m wrong but I think it is.
When you copy paste a script to post it with the tag it is shown correctly.
However when you copy it from the browser all line breaks and multi spaces disappear and you get a looooong line of code, which works but make impossible the editing.
Note: I'm trying this with a mobile phone (Firefox and chrome) perhaps it works in a computer.
Pierre Hébert, searching on the internet you can find some dokuwiki plugins for code text.
I made a quick search and found https://www.dokuwiki.org/plugin:syntaxhighlighter3 in case you don't want to spend time searching.
For some reason I can’t change the custom/ default icon of an app.
This is what I’m trying (i is the item)
i.setDefaultIcon(LL.createImage(100,100));
It works fine with .setImage, but it gives an [file==null] wrapped null pointer exception with .setDefaultIcon and with .setCustomIcon
However, it works with an image returned by getCustomIcon/getDefaultIcon … but it returns the android default icon :/
Perhaps I’m doing something wrong…could someone help me?
]]>
D5 Creation