Perform task on app upgrade
<p>I'm writing a new version of my Android app and upon upgrade I need to perform a certain task.  Is there anything similar to onUpgrade that is used for Sqlite but instead for the entire application?</p>

<p>If there is nothing similar, I assume I could store a flag in shared prefs saying the application has been upgraded but I would rather not have to run a check every time someone opens the application.</p>

<p>Thanks!</p>
