You don't. Let the user launch your app and then do your initialization. On Wed, Dec 17, 2008 at 11:22 AM, [email protected] <[email protected]>wrote:
> > I need a service to begin the moment my application is installed. Is > this possible? > > My current approach is to create a BroadcastService which receives the > PACKAGE_ADDED action. However, this only seems to work after my > application is installed, not when my application is installed. > > <receiver android:name=".broadcast.InstallBroadcastReceiver"> > <intent-filter> > <action android:name="android.intent.action.PACKAGE_ADDED"></action> > <data android:scheme="package"/> > </intent-filter> > </receiver> > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

