Android Question Update an app via code

MrKim

Well-Known Member
Licensed User
Longtime User
Our new android apps are being well received by our clients so now it is time to do the refinements.

Is it possible to update my app with a new .apk from within my program?

We have tablets on the manufacturing floor. Our clients would prefer to keep them off the internet.

The way we update our windows programs:

When the program opens we look to see if there is an update file on the customers server.
If there is we open it get the version, and check it against the currently running copy.
If the server version is newer we shell out and run a separate windows program to update the current program, then close the app.
The other (update) program waits for the main program to close, then copies the new main program to the local machine.

I would like to do something similar with our android program if it is possible?
Ideally checking the #VersionCode inside the update.apk to see if it is newer, although a small, seperate text file with the version info might be better?

All thoughts and ideas greatly appreciated.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…