I work on a project that uses an app which we do not need to upload to the Google Market. I would like to build in own update mechanism.
The application has a version, the server knows what current version is and the latest compatible version. If the current version number and the app version are not the same, the app offers to go to an “update_screen” or opens it automatically in case the app version is not compatible with the server any more.
The server provides an url string for a new apk.
What I would like to do is to download an apk to a user’s folder and run it to initiate an update process. I know that apk extension is considered dangerous, so downloading it with a different extension to rename it later, I guess, will not be a problem.
My question is how to run an apk-file, what permissions are required. And if it is possible at all?
I hope that using a webView to save and run an apk-file is not the only option.
Thanks.