Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android 5.1 Issues

Android 5.1 Issues

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 3 Posters 2.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SamGrant
    wrote on last edited by
    #1

    When running my app on Android 5.1... if I push the app to the background, then bring it back to the foreground, the UI does not show.

    This does not happen on Android 4.x.

    Using QT 5.5.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kolegs
      wrote on last edited by
      #2

      Are you debugging application? I've noticed that this happens only on debug (android 4.x, dont have device with 5.x), but when I only run application there is no problem

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SamGrant
        wrote on last edited by
        #3

        Nope. Running the app on-device. Debug and Release mode both exhibit the same thing....once the app is backgrounded and then foregrounded, the UI does not return...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SamGrant
          wrote on last edited by
          #4

          Actually, this seems to be a QT 5.5 issue... recompiling with QT 5.4 works.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Sounds like a regression. You should check the bug report system to see if it's something known.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SamGrant
              wrote on last edited by
              #6

              Update:
              Actually, still getting the same result with 5.4....

              Testing on Droid Turbo with Android 5.1....looks like it may be an Android 5.1 issue. Anyone else seen this?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SamGrant
                wrote on last edited by
                #7

                Update 2:

                using this code seems to help on Android 5.1:
                Connections {
                target: Qt.application
                onStateChanged: {
                console.debug("applicationStateChanged: " + Qt.application.state)
                if (Qt.application.state === Qt.ApplicationActive) {
                applicationWindow.show()
                //we're back from idle
                }
                else {
                applicationWindow.hide()
                //going to background
                }
                }
                }

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SamGrant
                  wrote on last edited by
                  #8

                  BUT>>>>>>

                  That causes Android 4.4.4 to exhibit the behavior.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    You should check and fill a bug report about it. You can also talk about it on the #necessitas IRC channel

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SamGrant
                      wrote on last edited by
                      #10

                      Actually... Tried it on another Android 4 device (a newer one)...and it works as expected, with the Connections code. Going to try this on other Android 4+ devices before filing a bug report.

                      The other device was running a 4.4.4 version of Cyanogenmod...so...

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved