How do I ensure that I run the code I've just installed?
<p>Developing on Android, very often the following happens:</p>

<ul>
<li>I export a release build of my application, I install it on the device and I run it.</li>
<li>I do some changes. I export it again</li>
<li>I reinstall it on the device</li>
<li>I kill EVERYTHING from the Task Manager</li>
<li>I run the installation again</li>
</ul>

<p>So I would expect the newly installed version of the application to be run. But instead, I'm still running the old code. I can tell it for sure because I've added some Log.d() traces and they don't show up in the logs.</p>

<p>So, I guess the old version of the classes are still somewhere in memory and the new ones are not loaded until.......... until something.</p>

<p>So what do I have to do (except reboot, please) in order to make sure that when I run the application, I run the newly installed one?</p>

<p>Isn't killing the application enough?</p>

<p>I'd hate to have to uninstall it before reinstall, for several reasons. Or is that the only way?</p>
