Am having hard time to decide where in Android should I properly terminate the connection (with disconnect). The App class where my connection lives does not have onDestroy and so I don’t know where to do that (except when user clicks logout)
Does Smack have recommended place to disconnect to avoid any leaks?
I think it depends on what you want to achieve. Normally people want their (chat) app to stay connected even if the app is not opened. A method call to a shutdown method from the Application classes onDestroy() is not sufficient?