Android autoupdate from own server

让人想犯罪 __ 提交于 2019-12-04 13:37:47

问题


Ive been looking for a good example, how to update my own developed application. So, I have an installed apk on my device and when I started it I'd like to check if any updates are exist on my server. If it does, then download from the webserver and install it.

At first I have to check to my server if there are any updates. If it does then download and install it.

Which is the best way for that? And anybody could show me some tutorial or maybe example?

Thanks afurther to your answers


回答1:


Check out this link. It uses a HTTP connection in an async task to download the APK file from an URL. When the download is finished it starts a new intend for showing/installing the APK (see this article).



来源:https://stackoverflow.com/questions/17274076/android-autoupdate-from-own-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!