Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2, 6.3
-
None
-
-
2022wk22FOQtforAndroid, 2022wk24FOQtforAndroid, 2022wk26FOQtforAndroid, 2022wk28FOQtforAndroid, 2022wk30FOQtforAndroid, 2022wk32FOQtforAndroid, 2022wk34FOQtforAndroid, 2022wk36FOQtforAndroid, 2022wk40FOQtforAndroid, 2023wkXXFOQtforAndroid
Description
Currently, the behavior of pressing a back button is to close the app with a System.exit(0).
First, System.exit(0) is not recommended to use and Android should be able to free resources as needed.
- In case of Activity only and not the whole app is meant to be destroyed
Second, this gives out some problems interacting with other activities and doesn't seem to respect normal android app behavior (stated in https://developer.android.com/guide/components/activities/tasks-and-back-stack )
Noticied by ramon:
Ramon Sadornil Rivera: How not to kill the entire app after a user presses back on Qt…
posted in Platforms / Android at 12. May 2022 10.49.56 EEST