title: how can update Cordova application from a server?
body: <p>I am building a jQuery mobile application and will wrap it with Cordova. I almost finish it and right now I want to know how can I update my application remotely.</p>
  
  <p>Since my application is build by JQM, so my code is actually a website (js/css/html files). I want to know how can I remotely replace those files while there is a new version. For example:</p>
  
  <p>I write some new code into app.js file. And I put it into a a server like update.com/app/app.js.</p>
  
  <p>Now I want my application to be able to visit <strong>update.com/app/app.js</strong> , and download new app.js and replace the one in local. And then restart the application. a update process finished.</p>
  
  <p><strong>PS: I don't want to download whole new .apk file to reinstall application. I just need to be able to update my asserts remotely.</strong></p>
  
  <p>Thanks</p>