2
Explanation:
I have an application that is constantly made quite changes, and every time I do, I get a new version with the same Private Key(Keystore), I mean, when I send the new *.APK install on the device no settings are lost and the application is simply updated. So far so good.
Question:
However, I don’t want the user to have to download a new *.APK on my website and later install every time it is necessary to update it, I would like to make a "Update" button and when click, transfer the new *.APK with a progress bar monitoring the end of the download for the device, and automatically installing it, with another progress bar monitoring the end of the installation(if it is not possible can be an "ajax" that would be that progress that is rotating without forecast), how should I do this?
Important detail:
I don’t want to use Google Play to do this for me because some users who own my application cannot, at a certain point, use, for example, version 1.21, and only 1.20, while other users can already upgrade to version 1.21.
Also, I would not like the update to be performed automatically, because I need the user to finish all the services in their application before being able to update. And it should only update when prompted to click the button.
Why not just put your app in the play store and let google do it for you?
– Androiderson
Because it is not all users who can update my application at certain times, some users can only use version 1.20 for example and others can already use 1.21.
– Paulo Roberto Rosa
You can make different versions available to each group of users through the play store.
– Androiderson
But even so, I can’t let them update when they want, my application that should control if it can be updated, IE, it should only be updated when there is no open service in the application, only when the user finishes all the services he can update. He should be aware of this update and the version he should download should be compatible (I check this)
– Paulo Roberto Rosa
I read your question and wondered why you don’t ask to terminate all services the application is running when the user clicks "update". (warning the user that the app will end all activities)
– Leandro RR