Well, basically I’ll give you an idea of how this works and you implement ok.
You must have a server where there is a file that tells you which version is currently published.
Example:
In the root folder of your server (server is ok software), you have a Versionpublish folder, inside it you can have an XML file, for example, containing the name of the current version, code number, publication date, etc.
And also, inside this root folder, the last APK file matches the description in XML.
So, you make your application query the server.
Example:
Your application sends a request to the server stating the version (code number) of the currently installed application. The server checks the currently published version is higher than that reported by the application that made the request.
If yes, it returns a true answer (then you show the update button, or a message to the user asking if he wants to update, etc).
When the user informs that they want to update, you send another request to the server requesting the download of the published file.
After downloading, user installs APK normally.
Consider that you cannot do the same update type performed by the Play Store.
If you are afraid of the user staying with your APK on the mobile phone, just download in an internal folder and then call the OS installation Intent itself.
This was a simple example! Consider all the engineering behind security, etc.
But you want your app to automatically check for updates?
– Jorge B.
@Jorgeb. It was to check manually anyway. But it’s already solved! Thanks for the support.
– Renan