beeware / toga

A Python native, OS native GUI toolkit.

Home Page:https://toga.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

on_exit handler and exit() for android.

greenshe11 opened this issue · comments

What is the problem or limitation you are having?

As far as im aware of, currently, using the back button for the android immediately closes the app. The on_exit handler doesnt work. Are there any work arounds we could use at the moment? if its possible.

As things are now, the simplicity is alright, but I feel like this functionality is necessary.

Describe the solution you'd like

Exactly how on_exit handler and exit() method would work in windows.
It would be helpful to have an onDestroy handler for the app, as the 'Back' button serves as a core and standard navigation control for android.

Describe alternatives you've considered

None.

Additional context

I would like to use it for navigation purposes (more specifically, changing to previous screens) and saving operations (autosave changes).

Unfortunately there's no easy workaround at the moment. Please subscribe to #1623 for future updates.

I see. thank you very much.