Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get close call in "MyWindow" class #21

Open
vrdvaibhav opened this issue Jul 10, 2014 · 2 comments
Open

get close call in "MyWindow" class #21

vrdvaibhav opened this issue Jul 10, 2014 · 2 comments

Comments

@vrdvaibhav
Copy link

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().

@cargo8
Copy link

cargo8 commented Oct 2, 2015

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.

@cargo8
Copy link

cargo8 commented Oct 2, 2015

@vrdvaibhav try doing this with your own ID in onClose()

    stopService(getShowIntent(this, getClass(), MY_ID));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants