StandOut
StandOut copied to clipboard
get close call in "MyWindow" class
when we call MyWindow.closeAll()
function view of windows get closed, but is there any method in MyWindow which will be called when we call closeAll(). I observed that after calling closeAll()
service is still running, so I want to stop some timers, unregister receivers, etc when we close the window using closeAll().
This is actually quite critical, in the case of log out and log back in, for example, it does not completely kill the service causing old data to show up instead of starting it from fresh.
@vrdvaibhav try doing this with your own ID in onClose()
stopService(getShowIntent(this, getClass(), MY_ID));