No, there is deliberately no API for this. You should let yourself be started when the user explicitly launches your app.
On Mon, Feb 23, 2009 at 5:17 PM, sandy8531 <[email protected]> wrote: > > Google team, is there a way for a application to get started or auto > start itself when it is installed for the first time ? > > Reading through the forum it appears that the application being > installed used to get the PACKAGE_ADDED broadcast in an earlier > release, but I cannot get it to work in the current release. Is there > another way this can be made to work ? > > -thanks, > > On Feb 15, 10:24 pm, Craig <[email protected]> wrote: > > I agree; this is an unnecessary limitation in the api IMO. It is fair > > enough to require user input to start any code *the very first time > > they install*, but what about during upgrades? With the way things > > work now, it's possible for an app to stop working after an upgrade > > due to the user not starting the app after installation. > > > > On Feb 13, 12:36 pm, Peter Jeffe <[email protected]> wrote: > > > > > On Feb 12, 1:54 pm, Dianne Hackborn <[email protected]> wrote: > > > > > > No, you should let the user decide to run you when they want. > > > > > We certainly let the user decide when they want to run our activity > > > and interact with it, but we also have a service that we want to run > > > after we are installed and at boot time. In any system there are > > > applications that have a service/daemon character, or a component of > > > them that do, and mobile devices are no different. Android provides > > > the BOOT_COMPLETED broadcast to allow this behavior at boot time, just > > > like Unix's init or Window's service manager, so I don't see why it > > > would be a problem to have us invoked in the same manner after > > > installation? > > > -- 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 -~----------~----~----~----~------~----~------~--~---

