This is not a script. This is an APK!
Posted by: pierrot | on January 20, 2015
Many thanks to Lukas Morawietz, I started this project thanks to him (I guess you know why 😉
And also to Pierre Hébert for…everything.
Ok, this app is called Repository importer, and allows you to import any script to the launcher from the Repository with the click of a button.
What it does: you navigate with the built in webview browser, you open a page with a script, you press the import button, and after accept you will have the script available in the launcher.
What it doesn’t do: retrieve the name and the flags required (but you can edit them before import), retrieve more than one script(only the first), and it doesn’t follow the instructions of the script and do them for you.
Keep in mind it is the first published version, I tested it and couldn’t find any more bugs, but I’m sure there are.
Even thought I made this to test myself if I could make a basic app, if I see people use it I will publish it on the play store.
If you want to know how I made to create new scripts from another app…why don’t you try it? (Hint: you need to import a script from lightning menu 😉
[Note]
For obvious reasons I need the Internet permission. I promise non data is collected 🙂
[Update]
Github page: https://github.com/TrianguloY/LLScript_Repository_Importer
]]>Posted in | 29 Comments »
Tags: TrianguloY
< ![CDATA[
“There was a problem parsing the package”. Anyone else?
Could have been a bad download.
]]>
< ![CDATA[
But can you download the file?
If the problem is at the installation, which android version do you use?
]]>
< ![CDATA[
Apk downloaded. Error was on install attempt. Android 4.4.4 Tried again with same result.
]]>
< ![CDATA[
There is no name of app. Could that be the problem?
]]>
< ![CDATA[
Strange, there should be a name, and it works on my tablet with 4.2.2
…
Someone else with the same problem?
]]>
< ![CDATA[
Chris Chastain do you have ‘Allow installation of apps from unknown Sources’ in android settings/applications enabled?
]]>
< ![CDATA[
Yes. It may have just been a corrupt download. I’ll try more in a bit.
]]>
< ![CDATA[
Ok, TrianguloY all three downloads have different checksums. I’ll keep trying.
]]>
< ![CDATA[
Have had this problem with some watch faces lately, also hosted from Dropbox. 🙁
]]>
< ![CDATA[
Are you using the app to download them?
Try to use a different browser too
]]>
< ![CDATA[
No. I don’t have the app. Just clicked directly in g+ and es file explorer downloader does the work. I’ll try something else.
]]>
< ![CDATA[
Whoooaa! This is ABSOLUTELY GIGANTIC!
And the box that let you edit the script source code, name and attributes on the fly makes the process of script importation even more pleasant!
]]>
< ![CDATA[
Had this idea too! Good think i didn’t started yet 😉
Would you mind uploading the sources?
]]>
< ![CDATA[
Thank you both 😀
That box is just a normal alertdialog, with a custom view
About publishing the sources, of course, but I don’t know the best way of do that. I heard of Github…I’ll try to publish it there this afternoon (any help will be appreciated)
]]>
< ![CDATA[
Easiest way for github: create account, download windows application,
drop the project in there as a new reporitory
]]>
< ![CDATA[
TrianguloY, successful! Used chrome instead of es file downloader. Damn, I wonder what’s up with THAT?
Edit: should have said that the app seems to work well.
Just make sure to wait until the actual page containing script loads, because the “import script” button will come up first. 🙂
]]>
< ![CDATA[
Chris Chastain that’s something I think a lot to do that way or not. But in fact even if the page is not yet loaded the button will work (it is independent, tricky thing)
So I let it this way for fastest tests 😛
]]>
< ![CDATA[
TrianguloY, not complaining. I understand, and it’s fine. Great actually.
]]>
< ![CDATA[
wow 🙂
]]>
< ![CDATA[
TrianguloY suggestion: create a template only containing your script. You can send an intent to LL loading this template on app start when the script is not installed.
]]>
< ![CDATA[
Lukas Morawietz can I? Didn’t know!
So, I could keep a template in the apk and send an Intent to LL which will load the template with the script (which intent? )
But, will the script be run when loaded? I need to send the id of the script to the app, so it can ‘inject’ the data directly.
Let’s see if I could add it to github, this way you could also test yourself 🙂
]]>
< ![CDATA[
Pierre Hébert is the id of a script kept on template merge if it doesn’t exist already?
]]>
< ![CDATA[
No, the id of the script in the template is not kept during a merge, there are two rules:
– if the same script already exists (same name, same content, same flags), then reuse the existing one and update all items calling this script in the imported items.
– if the script doesn’t match any existing item, then find a new free identifier, and update the items as in the first rule
]]>
< ![CDATA[
https://github.com/TrianguloY/LLScript_Repository_Importer
Is this the page? Can you see the proyect?
]]>
< ![CDATA[
Yes
]]>
< ![CDATA[
I have an idea… It’s not as easy as I thought.
]]>
< ![CDATA[
Nice
If I can help with something just ask 🙂
]]>
< ![CDATA[
:/ its working, but creates an empty desktop in the progress. This is not a good solution. I tried to delete that desktop afterwards, but failed. Lightning cashes too much data and recreates it afterwards…
]]>
< ![CDATA[
I may still get it usable, but the question is if it is worth the work. You’d have to create a new template each time you want to update the script…
]]>