The lifecycle is that onCreate() is called first thing when the service is being created in the process, for whatever reason. onStart() is called for each startService() call.
On Wed, Nov 25, 2009 at 10:41 AM, jotobjects <[email protected]> wrote: > > > On Nov 25, 5:25 am, "saify.zeenwala" <[email protected]> wrote: > > > put ur code in onstart() instead of oncreate() > > becuase ur on create will get call only once through out the life cycle > of > > service. > > > onStart() is never called if the service is started with bindService > (). > > Not clear from docs if onCreate() or onStart() or both can be called > more than once if the system kills the process and then restarts the > service. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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, and so won't reply to such e-mails. 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

