Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70230

Black screen when activity is destroyed

    XMLWordPrintable

Details

    • Android

    Description

      Android 8. QML+Quick Controls 2 app.

      1. Start app
      2. Go to recent apps list (by clicking rightmost Android button) and remove app
      3. Activity::onDestroyed is called, but process stays running
      4. Try launch app again

      Result: black screen is shown. App can't be started according to the user's point of view. App reinstall / phone restart is required to start app again.

      Workaround I've found:

      In the code of activity use this:

      @Override
      protected void onDestroy()
      {
          //super.onDestroy();
          System.exit(0);
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            whoistheguilty Tapio Oksa
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes