Tom1s Member Licensed User Longtime User Feb 8, 2015 #1 Hi I don't want to put my program to google play just yet. I have made a update check to program and if update is available it could be downloaded and installed. Update check works nicely. File is not big but how to implement it? Download and callsubdelayed to start install? Link is api end point link so when calling or putting in chrome it would start the download. like this http://site.net/...DnnApiEndpoint/Api.ashx?method=Application&APIKEY Code: Copy Dim upgrade As HttpJob Dim upgradelink As String = "http://site.net/..DnnApiEndpoint/Api.ashx?method=VERSION&apikey=apikey" upgrade.Initialize("upgrade",Me) upgrade.Download(upgradelink) Sub JobDone(Job As HttpJob) If Job.Success = True Then ????
Hi I don't want to put my program to google play just yet. I have made a update check to program and if update is available it could be downloaded and installed. Update check works nicely. File is not big but how to implement it? Download and callsubdelayed to start install? Link is api end point link so when calling or putting in chrome it would start the download. like this http://site.net/...DnnApiEndpoint/Api.ashx?method=Application&APIKEY Code: Copy Dim upgrade As HttpJob Dim upgradelink As String = "http://site.net/..DnnApiEndpoint/Api.ashx?method=VERSION&apikey=apikey" upgrade.Initialize("upgrade",Me) upgrade.Download(upgradelink) Sub JobDone(Job As HttpJob) If Job.Success = True Then ????
DonManfred Expert Licensed User Longtime User Feb 8, 2015 #2 if the return is the binarydata of the apk then you should save this in Jobdone sub. See httputils-samples in forum on how to save the result to a file (for ex see my signature) Upvote 0
if the return is the binarydata of the apk then you should save this in Jobdone sub. See httputils-samples in forum on how to save the result to a file (for ex see my signature)
udg Expert Licensed User Longtime User Feb 8, 2015 #3 Hi Tom, maybe my AppUpdating lib's code could be of some help. I wrote it for your same reason, PlayStore independence, and made it available both in compiled and source-code form. So, please, feel free to use it as is or to borrow from it any code or inspiration you may deserve. udg Last edited: Feb 8, 2015 Upvote 0
Hi Tom, maybe my AppUpdating lib's code could be of some help. I wrote it for your same reason, PlayStore independence, and made it available both in compiled and source-code form. So, please, feel free to use it as is or to borrow from it any code or inspiration you may deserve. udg
Tom1s Member Licensed User Longtime User Feb 9, 2015 #4 Hi udg, Your code was very good and educational. I got a lot of ideas,thanks! One problem. I think my code would work now if the link was direclty to the file,but now i call the api and then it sends the file. Somehow it is not working..any ideas? Upvote 0
Hi udg, Your code was very good and educational. I got a lot of ideas,thanks! One problem. I think my code would work now if the link was direclty to the file,but now i call the api and then it sends the file. Somehow it is not working..any ideas?
DonManfred Expert Licensed User Longtime User Feb 9, 2015 #5 Without seeing your code all we can do is GUESSING Upvote 0
Tom1s Member Licensed User Longtime User Feb 10, 2015 #6 I will guess that my apikey is wrong. Correct. Now it is working. Thanks Upvote 0