android intent when MY app is installed
<p>i need to perform an action when my application is installed. i've looked into using</p>

<pre><code>Intent.PACKAGE_ADDED
</code></pre>

<p>but i don't receive the intent in the app that's being installed. i want to run code when my app is installed for the first time.</p>

<p>the use case is registering with an online service. i can listed for BOOT_COMPLETED which is fine if the app is already installed, but i need to handle the case when the user first installs the app.</p>

<p>this post,
<a href="http://stackoverflow.com/questions/5128703/can-you-run-an-intent-or-script-when-your-app-gets-installed-on-android">Can you run an intent or script when your app gets installed on Android?</a></p>

<p>suggests listening to TIMER_TICK and on the first broadcast, perform the registration and set a flag so as not to perform it upon the next TIMER_TICK. this seems problematic because whether you do something or not in the receiver, you are still starting your receiver every single minute and using up battery in the process.</p>

<p>is there a better solution?</p>
