I'm stuck with the following situation. I have a service in my app. The activity started it with startService() to prevent it from closing on unbind in the future. Than binds to the service with bindService() and unbinds later with unbindService(). All that works fine and as expected: onBind/onUnbind is called and service remains running. But when i call bindService() again from this or another activity i've got another behavior: neither onBind nor onRebind are called, but onServiceConnected() still called and i get IBinder implementation that's returned in onBind(). Any ideas? Thx in advance!
onRebind()
This will only be called if the implementation of onUnbind(Intent)
was overridden to return true
.
Is this done?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With