Auto-Update

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Auto-Update

Post by viro » Fri Jul 18, 2014 4:15 pm

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?
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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Auto-Update

Post by Simon » Fri Jul 18, 2014 6:33 pm

HI viro,
Have you tried just renaming the extension?

Code: Select all

 libUrlDownloadToFile "https://dl.dropbox.com/s/oyinmwd8zpdcqip/Update.viro",\
   specialfolderpath ("documents") & "/Update.viro", "unZip"
liveCode doesn't mind what the name is.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: Auto-Update

Post by viro » Fri Jul 18, 2014 6:51 pm

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?
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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Auto-Update

Post by Simon » Fri Jul 18, 2014 6:58 pm

Ahh sorry, I did misunderstand.
.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!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Auto-Update

Post by Simon » Fri Jul 18, 2014 7:03 pm

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: Auto-Update

Post by viro » Fri Jul 18, 2014 7:04 pm

But How to install? :D
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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Auto-Update

Post by Simon » Fri Jul 18, 2014 7:05 pm

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!

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: Auto-Update

Post by viro » Sat Jul 19, 2014 1:05 pm

Push...
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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Auto-Update

Post by FourthWorld » Sat Jul 19, 2014 3:02 pm

viro wrote:Push...
Is there definitly no way to initiate apk Installation through apps built with LiveCode?
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: Auto-Update

Post by viro » Wed Jul 23, 2014 10:23 am

UpdateAndroid.zip
Updater
(2.65 KiB) Downloaded 353 times
Here's what i use now to keep my apps updated
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

Post Reply