title: Auto Update APK version on Android Phone
body: <p>If a user downloads my app <em>(a .apk file)</em> onto their android phone from the market place, </p>
  
  <ol>
  <li>Where does the .apk file end up on their phone?  </li>
  <li>When they're running my application, if I detect that there is a new later version of the application available is it possible to <strong>from within the application that they're running</strong> download the latest version off an ftp link (I can programmatically do that now) and then replace the existing .apk that they're now running with the newer version. [Not sure about this one at all.] </li>
  <li>Is the existing application all in memory when it's being run, so that when i download the new version, I can delete its apk file without it being locked up and replace it with the later build and then restart the app?  </li>
  </ol>
  
  <p>What's the best way to handle this scenario? I have an app where I want to ensure that users are on the latest version before they use it.</p>