Skip to content

Android App Crashes on Reopening After Closing with Back Button #2788

@iforvard

Description

@iforvard

Description

After building an Android APK using Flet, the app crashes when reopened after being closed with the back button. The crash does not occur if the app is closed through the system's "Recent Apps" menu.

Steps to Reproduce:

  1. Build an Android APK using flet build apk
  2. Install the APK on an Android device.
  3. Open the app.
  4. Close the app using the back button.
  5. Open the app again.
  6. The app will crash.

Reproducible on devices:

Samsung S21 Ultra (Android 14)
Sberbox (TV stick with Android 9)

The official flet app on google play has the same behavior (video):

flet_err.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform: androidSpecific to Android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions