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

Android: white screen with title after onDestroy() + onCreate() (maybe does not re-initialize native library)

    XMLWordPrintable

Details

    • Android

    Description

      Firstly I would like to thank all Qt-developers for so suitable and beautiful framework!  : )

       

      My test case:

      • I compile a simplest app from Examples "Examples/Qt-5.11.2/gui/analogclock" and install it to my test Android device "Samsung Galaxy S5 Mini". I have tried also "openglwindow", "btscanner" (uses *.ui-files) and my own application I have been developing since Qt5.5.
      • Application launches and shows analog clock (see Screenshot_2018-09-24-12-44-21.png attached)
      • After a time apprears an Android popup message "refreshing sim card data" and the application makes some magic.
      • Now I see only an application title at the top of the screen and an empty content under it (see Screenshot_2018-09-24-12-45-18.png attached) It makes no difference which event invokes this behavior. The thing is that the application does not reinitialize its GUI.

      After some research I have discovered, that:

      • during the first start the java-part calls onCreate(), then calls loadApplication(), that loads a native jni-part, which prints out into the log: "I QtCore : Start"
      • if the application goes after a while into onPause() and then into onResume() everything works well
      • if the application goes after a while into onDestroy() and after that is active again, and calls onCreate(), its layout will be re-created (empty layout), but the jni-part remains not re-initialized. I see only the application title at the top and nothing more.

       

      Thank you for support!

      Attachments

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

        Activity

          People

            lukasz.kosiorowski lukasz.kosiorowski
            gehrmann gehrmann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes