In my app I only have one screen, and when I press back, it closes the app, regardless of the function I assign to the back button pressed. Even if I add the function of opening another screen when I press the back button, the app closes. This is on the first screen of the application.
See the fixes here: