I have a service which is binded to application context like this:
getApplicationContext().bindService( new Intent(this, ServiceUI.class
Doing exactly what Andrey Novikov proposed didn't work for me. I simply replaced:
getApplicationContext().unbindService(serviceConnection);
With:
unbindService(serviceConnection);