The Story Now I am working on a project where an Android application is running on a custom device and this app is not installed through the Play Store, but the APK file is manually uploaded, installed and launched on the device.
The problem here is when new version is released we have to update the application manually on all devices.
We want to automate this process and build process like this:
- Install the app
- Launch the app
- Start a background process which to check for a new version in out Server
- Download the new APK file
- Uninstall the current app / Update the app
- Install the new app / Update the app
The Questions:
Can we uninstall and install APK file programmatically?
Shell we use the existing app for this job or create a new android app which to handle the new version checking and update the app in the background?