The Button "Update" should check online if a new version is available.
I can write a version in a textfile oder a index.html file. The app checks the page and compares the app version.
If the versions are not the same, the new version will be downloaded from a URL and install on the device.
Device should have "unknow sources" for app installation available. Or this should be added the authorizations of the app, so it is allowed. Some app ask you if you want to enable this and jump to "allow unknown sources".
MainActivity - showUpdatePopup
Logic is in Splash Activity
showUpdatePopup
Translations:
In MainActivity.showUpdatePopup - replace text with german
In SpalashActivit: private String currentAppVersion = "1.0.0"; // Replace with your current app version - don't like it. It should be somehow global. Can there be a file for all global settings? Maybe in Manifest? - OK
If App version in the App (e.g 2.1.0) is higher than in the JSON (2.0.0), the App also wants to be updated. Only "<" smaller, should trigger the popup - OK
The update button should have text with either "No Updates" and deactivated or "Update available" colored in red, by clicking on the button the same Update Popup will come up. - OK
The Button "Update" should check online if a new version is available. I can write a version in a textfile oder a index.html file. The app checks the page and compares the app version. If the versions are not the same, the new version will be downloaded from a URL and install on the device.
Device should have "unknow sources" for app installation available. Or this should be added the authorizations of the app, so it is allowed. Some app ask you if you want to enable this and jump to "allow unknown sources".