Good practices for services on Android
问题 I am currently using 2 services in my app: 1: LocationService , basically trying to localize the user, and aims to stay alive only when the app is on foreground. 2: XmppService , which init the connection with the xmpp server, receive messages, send it, logout ... and aims to stay alive until the user logout. I've been reading quite a lot of documentation, but I just can't make it clear. I'm having Leaks when I try to store reference of LocationServiceBinder, which is used to call my service