Binding Few Activities To One Service - Class Which Connected Treated Like Service - Can't Destroy Activity
I will start from my approach I want to have one service which is running even if none of application screen is visible for user. This service will scan for beacons. Every screen
Solution 1:
In my ServiceConnector class should be:
context.unbindService(mConnection);
instead of this line:
scanningService.unbindService(mConnection);
I don't know how this misscoding come from, but I lost few hours, so be sure that you unbind from context of activity.
Normally i would delete this question, but one person make it favorite so I want to show what was the reason of my error.
Post a Comment for "Binding Few Activities To One Service - Class Which Connected Treated Like Service - Can't Destroy Activity"