How to exit a Kivy application using a button
Try using App.get_running_app().stop()
.
For more details, read the Kivy documentation article for the function.
Try using self.root_window.close()
.
There is bug in new android toolchain.
Use App.stop(*largs):
Button:
id: btnExit
text: "Exit"
on_press: app.stop()
I used
on_press : app.stop()
in Button's property in Kivy Layout File and it worked well for me.