Android lock screen stops udp receive
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
@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.
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.
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.
Thanks, I'll give it a try