Re: [android-developers] Service gets instantiated multiple times

2010-09-27 Thread Olivier Guilyardi
I need to call both, because the service may also continue when unbound (audio rec/playback). Plus, this is legal: http://developer.android.com/intl/fr/reference/android/app/Service.html "A service can be both started and have connections bound to it. In such a case, the system will keep the servi

Re: [android-developers] Service gets instantiated multiple times

2010-09-27 Thread Agus
Calling bindService will start the service if it has not been started, so you dont have to call both methods. On Mon, Sep 27, 2010 at 6:15 AM, Olivier Guilyardi wrote: > Hi, > > IIUC, there should only be one instance of a given service, it is a singleton. > > However, my (audio engine) service g

[android-developers] Service gets instantiated multiple times

2010-09-27 Thread Olivier Guilyardi
Hi, IIUC, there should only be one instance of a given service, it is a singleton. However, my (audio engine) service gets instantiated multiple times, although I do nothing for it. When the service crashes (for example when I uninstall the app through adb), it gets scheduled for restart ("Sched