Example: I distribute my application on Android from my site, users installed it. There is no developer account in the Google Market. If I make a new version of the application - how can I update an already installed application? How to make it so that when a new version is released - the outdated version (which is installed by the user) stops working and writes a notification: "Download the new version." Or prompt alternative ways.
2 answers
Add in the application version control at startup.
The application, when launched (or according to the schedule), makes a request to the server, gets the number of the current version, compares it with the installed one, and acts according to circumstances.
|
I answer myself. Found what I was looking for here: https://m.habrahabr.ru/post/279553/
This article describes how to add version control to your application in a small piece of code.
|