Run task on Android apk installation
<p>I would like to execute some code on installation in order to register with an API. This would happen without user interaction other than purchase>download>install from the market. While I can (and do) trigger this on first run, I've seen testers who, after reinstalling their OS, just re-download their apps and forget to open for the first time. As my apps primary use is as a service when someone calls, they are normally not too likely to open the app for long periods of time.</p>

<p>My preference would be to create a notification on installation reminding them they need to open the app.</p>

<p>I have looked at using DBOpenHelper onCreate or onUpgrade but these seem to fire when the database is requested (i.e. after a user interaction)</p>

<p>The install/remove/upgrade intents aren't any good either as they don't register in the app being installed. </p>

<p>I guess I'm looking to see if there is a way to do this or if it's been locked down completely, so I'm happy to accept answers citing documentation/research showing it's not possible.</p>
