Auto-Update
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Auto-Update
Hi there,
trying to auto update my lc app...
made a test stack.
Problem: when launching downloaded apk it tries to open with zip-app (eg. ed file explorer, flashify, etc)
can this behaviour be changed?
trying to auto update my lc app...
made a test stack.
Problem: when launching downloaded apk it tries to open with zip-app (eg. ed file explorer, flashify, etc)
can this behaviour be changed?
- Attachments
-
- UpdateAndroid.zip
- (2.26 KiB) Downloaded 251 times
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it
Re: Auto-Update
HI viro,
Have you tried just renaming the extension?
liveCode doesn't mind what the name is.
Simon
Have you tried just renaming the extension?
Code: Select all
libUrlDownloadToFile "https://dl.dropbox.com/s/oyinmwd8zpdcqip/Update.viro",\
specialfolderpath ("documents") & "/Update.viro", "unZip"
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Auto-Update
Hey Simon, i think you misunderstood me.
My problem is not unzipping the update package - no matter the extenion ,it works.
It's about initiating the Installation of the apk in Android.
Any hints in that?
My problem is not unzipping the update package - no matter the extenion ,it works.
It's about initiating the Installation of the apk in Android.
Any hints in that?
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it
Re: Auto-Update
Ahh sorry, I did misunderstand.
.apk is an archive (zip) package.
Pretty sure it has to be installed not just opened.
Simon
.apk is an archive (zip) package.
Pretty sure it has to be installed not just opened.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Auto-Update
Take a look at this:
http://lessons.runrev.com/m/4071/l/1737 ... pplication
it's how we(?) update apps.
From that lesson your app is really "main.rev (.livecode) and it's the one you download.
But the Play store has updates that notify the user.
Simon
http://lessons.runrev.com/m/4071/l/1737 ... pplication
it's how we(?) update apps.
From that lesson your app is really "main.rev (.livecode) and it's the one you download.
But the Play store has updates that notify the user.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Auto-Update
But How to install? 
So there is no other way but to use a launcher ?

So there is no other way but to use a launcher ?
Last edited by viro on Fri Jul 18, 2014 7:05 pm, edited 1 time in total.
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it
Re: Auto-Update
cross post see above.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Auto-Update
Push...
Is there definitly no way to initiate apk Installation through apps built with LiveCode?
Is there definitly no way to initiate apk Installation through apps built with LiveCode?
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Auto-Update
There may be, but for the benefit of the user I wouldn't advise it, encouraging them to go through Google Play instead. Side-loading is where malware happens, so we don't want to get users into the habit of bypassing Android's build-in security mechanisms like the side-loading lock.viro wrote:Push...
Is there definitly no way to initiate apk Installation through apps built with LiveCode?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Auto-Update
Feel free to share improvements!
regards viro
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it