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 lock screen stops udp receive
Forum Updated to NodeBB v4.3 + New Features

Android lock screen stops udp receive

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.2k Views 1 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.
  • O Offline
    O Offline
    omatrix1981
    wrote on last edited by omatrix1981
    #1

    Hi everyone

    I have a problem with android lock screen in Qt 5.7 (SDK 25, NDK 13).
    When I lock the android screen my app stops receiving UDP datagram and as soon as I unlock the phone, it starts receiving again even it receives packets that are sent while locking.
    But there's no such a problem with Qt 5.3.2 (SDK 20, NDK 12).
    I repeated the test with Samsung Galaxy S3 and Samsung Galaxy Note 8.1.

    I'm really stuck there, Please help

    jsulmJ 1 Reply Last reply
    0
    • O omatrix1981

      Hi everyone

      I have a problem with android lock screen in Qt 5.7 (SDK 25, NDK 13).
      When I lock the android screen my app stops receiving UDP datagram and as soon as I unlock the phone, it starts receiving again even it receives packets that are sent while locking.
      But there's no such a problem with Qt 5.3.2 (SDK 20, NDK 12).
      I repeated the test with Samsung Galaxy S3 and Samsung Galaxy Note 8.1.

      I'm really stuck there, Please help

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @omatrix1981 I'm not an Android expert, but I would expect this behaviour to be "as expected" as your app is halted when the phone is locked. To do things in the background you need a service.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        omatrix1981
        wrote on last edited by
        #3

        Thanks for your reply
        So why it's working with Qt 5.3.2 ? Also I forgot to mention that I wrote a simple GUI along with a thread in native java code using android studio that replies UDP packets and it didn't have any problem, just like Qt 5.3 as I mentioned before.

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

          Hi and welcome to devnet,

          That's something I'd recommend asking on the Android development mailing list. You'll find there Qt's Android proper developers/maintainers. This forum is more user oriented.

          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
          • O Offline
            O Offline
            omatrix1981
            wrote on last edited by
            #5

            Thanks, I'll give it a try

            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