You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a kivy app that needs to close threads pythonically when exited, but when the user touches the back or home buttons on the navigation bar the app freezes because the python activity did not get a proper exit() call and thus the threads keep running. Since Android does not allow for the Nav bar to be disabled I need a work around for this. I'm thinking that using PyJnius I can have a 'os._exit(True)' called when the backbutton is pressed. The only thing is I have no idea how I would do this. I came here to ask the question because I don't know of a forum where I could ask. Thank you for any help!
The text was updated successfully, but these errors were encountered:
Take a look at the KivyApp
LifeCyclehttp://kivy.org/docs/guide/basic.html#kivy-app-life-cycle,
essentially you should be using on_pause and on_stop to clean up.
Probably on_resume to restart your threads. It's not guaranteed that on_resume will be called though so you should be make preparations on on_pause accordingly.
I have a kivy app that needs to close threads pythonically when exited,
but when the user touches the back or home buttons on the navigation bar
the app freezes because the python activity did not get a proper exit()
call and thus the threads keep running. Since Android does not allow for
the Nav bar to be disabled I need a work around for this. I'm thinking that
using PyJnius I can have a 'os._exit(True)' called when the backbutton is
pressed. The only thing is I have no idea how I would do this. I came here
to ask the question because I don't know of a forum where I could ask.
Thank you for any help!
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/61
.
I have a kivy app that needs to close threads pythonically when exited, but when the user touches the back or home buttons on the navigation bar the app freezes because the python activity did not get a proper exit() call and thus the threads keep running. Since Android does not allow for the Nav bar to be disabled I need a work around for this. I'm thinking that using PyJnius I can have a 'os._exit(True)' called when the backbutton is pressed. The only thing is I have no idea how I would do this. I came here to ask the question because I don't know of a forum where I could ask. Thank you for any help!
The text was updated successfully, but these errors were encountered: