Thursday, March 15, 2012

Android PackageUpdater Sample

This android sample app implements an update strategy for some files of your project.
This sample is usefull if you want to update some files in your apps without uploading a new app version on the market.



The PackageUpdater class download a version file which contains only the latest version number.
If the local version is older then the remote version, the PackageUpdater try to download the new package file for the latest version.
The package file is a compressed (zip) files which contains all the files that need to be updated.
If this download succeed, then the package will be decompressed and checked for the required files. Then it can be copied to the device package files location.


Code


Notes
  • read risk disclaimer
  • excuse my bad english

No comments:

Post a Comment