<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1478927772567_14247" dir="ltr"><font size="2" id="yui_3_16_0_ym19_1_1478927772567_14434">Thanks a lot. That did the trick (Manifest).</font></div><div id="yui_3_16_0_ym19_1_1478927772567_14247" dir="ltr"><font size="2" id="yui_3_16_0_ym19_1_1478927772567_14600">As drawing in background is not my issue here, I can use this method for now.</font></div><div id="yui_3_16_0_ym19_1_1478927772567_14247" dir="ltr"><font size="2" id="yui_3_16_0_ym19_1_1478927772567_14604">Thanks for your help</font></div><div id="yui_3_16_0_ym19_1_1478927772567_14247" dir="ltr"><font size="2"><br></font></div><div id="yui_3_16_0_ym19_1_1478927772567_14247" dir="ltr"><font size="2">oMatrix</font></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1478927772567_14248"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1478927772567_14254" style="display: block;">  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1478927772567_14253"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1478927772567_14252"> <div dir="ltr" id="yui_3_16_0_ym19_1_1478927772567_14251"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1478927772567_14250"> <hr size="1" id="yui_3_16_0_ym19_1_1478927772567_14249"> <br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1478927772567_14266"><br><div id="yiv5883052301"><div id="yui_3_16_0_ym19_1_1478927772567_14265"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1478927772567_14264"><div id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">Hi,</div><div id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746"><br clear="none"></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">Be aware that starting with 5.5 we freeze the main event loop if the *activity* is backgrounded, so, if you're using an activity to listen for UDP instead of  service all the signals/slots are blocked.</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">To unblock them you need to change the setting from you AndroidManifest.xml file (check <a rel="nofollow" shape="rect" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_8831" target="_blank" href="http://code.qt.io/cgit/qt/qtbase.git/tree/src/android/templates/AndroidManifest.xml#n44">http://code.qt.io/cgit/qt/qtbase.git/tree/src/android/templates/AndroidManifest.xml#n44</a> ) but is not recommended at all because on *some* phones if you're trying to draw something while the application is in background it will crash.</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">I do recommend you to use a service instead (check <a rel="nofollow" shape="rect" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_10496" target="_blank" href="https://www.kdab.com/qt-android-create-android-service-using-qt/">https://www.kdab.com/qt-android-create-android-service-using-qt/</a> for more info).</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746"><br clear="none"></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">Cheers,</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478941447035_6746">BogDan.</div> <div class="yiv5883052301qtdSeparateBR" id="yui_3_16_0_ym19_1_1478927772567_14275"><br clear="none"><br clear="none"></div><div class="yiv5883052301yqt3651005894" id="yiv5883052301yqt79355"><div class="yiv5883052301yahoo_quoted" style="display:block;" id="yui_3_16_0_ym19_1_1478927772567_14281"> <div style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1478927772567_14280"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1478927772567_14279"> <div dir="ltr" id="yui_3_16_0_ym19_1_1478927772567_14278"><font size="2" face="Arial" id="yui_3_16_0_ym19_1_1478927772567_14277"> On Saturday, November 12, 2016 11:15 AM, Omatrix Star <omatrix1981@yahoo.com> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv5883052301y_msg_container" id="yui_3_16_0_ym19_1_1478927772567_14286"><div id="yiv5883052301"><div id="yui_3_16_0_ym19_1_1478927772567_14285"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1478927772567_14284"><div id="yiv5883052301"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_7844"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_7843" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_6105" size="2">Hi</font></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font size="2"><br clear="none"></font></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5176" size="2">I did lots of tests. I repeated my test with PARTIAL_WAKE_LOCK acquire on java side of the project, also with FULL_WAKE_LOCK, ACQUIRE_CAUSES_WAKEUP and SCREEN_BRIGHT_WAKE_LOCK. </font><span id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5770" style="font-size:small;">I get the WAKEUP messages in console log but still It doesn't receive the UDP packets.</span></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5731" size="2">For more information I should say that when I unlock the phone the listener SLOT gets all of packets that received during lock at once.</font></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_6072" size="2">I can provide you an example if you like.</font></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4914"><font size="2"><br clear="none"></font></div><div class="yiv5883052301qtdSeparateBR" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4942"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_6106" size="2">oMatrix<br clear="none"></font><br clear="none"></div></div></div></div><div class="yiv5883052301yqt9113877529" id="yiv5883052301yqt76812"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_7858">  <div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4947" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4946" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4945"> <font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4944" size="2" face="Arial"> </font><hr id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4943" size="1"> </div><div class="yiv5883052301y_msg_container" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4993"><br clear="none"><div id="yiv5883052301"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4992"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4991" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv5883052301yui_3_16_0_ym19_1_1478596668470_3333"><span id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4998">Please read the entire bug report and you'll find out why it appears to work.</span></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478596668470_3324"><span><br clear="none"></span></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478596668470_3324"><span id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_6107">BogDan.</span></div> <div class="yiv5883052301qtdSeparateBR" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5025"><br clear="none"><br clear="none"></div><div class="yiv5883052301yqt8379494349" id="yiv5883052301yqt75288"><div class="yiv5883052301yahoo_quoted" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4990" style="display:block;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4989" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4988" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5026"><font id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_5027" size="2" face="Arial"> On Tuesday, November 8, 2016 10:55 AM, Omatrix Star <omatrix1981@yahoo.com> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv5883052301y_msg_container" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4987"><div id="yiv5883052301"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4986"><div id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_4985" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15489"><font id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15863" size="2">But why it works with Qt 5.3  and also with native java project?</font></div><div class="yiv5883052301qtdSeparateBR" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15490"><br clear="none"><br clear="none"></div><div class="yiv5883052301yqt5747524120" id="yiv5883052301yqt59922"><div class="yiv5883052301yahoo_quoted" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15496" style="display:block;">  <div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15495" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15494" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15493"> <font id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15492" size="2" face="Arial"> </font><hr id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15491" size="1"> </div><div class="yiv5883052301y_msg_container" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15497"><br clear="none"><div id="yiv5883052301"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15499"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15498" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10284"><span id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15785">Hi,</span></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10283"><span><br clear="none"></span></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10282"><span id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_12071">That the correct behavior, check </span><a rel="nofollow" shape="rect" class="yiv5883052301" id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10344" target="_blank" href="https://bugreports.qt.io/browse/QTBUG-56648">https://bugreports.qt.io/browse/QTBUG-56648</a> for more info on this matter.</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10282"><br clear="none"></div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10282">Cheers,</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10282">BogDan.</div><div id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10352"><br clear="none"></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478592232736_10418"><br clear="none"></div> <div class="yiv5883052301qtdSeparateBR" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15696"><br clear="none"><br clear="none"></div><div class="yiv5883052301yahoo_quoted" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15701" style="display:block;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15700" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15699" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv5883052301yqt1974544909" id="yiv5883052301yqt10127"><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15698"><font id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15697" size="2" face="Arial"> On Tuesday, November 8, 2016 9:49 AM, Omatrix Star via Android-development <android-development@qt-project.org> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv5883052301y_msg_container" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15704"><div id="yiv5883052301"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15703"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_15702" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6549"><font id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6791" size="2">hi</font></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6549"><br clear="none"></div><div id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6537" style="margin-bottom:10px;font-family:Roboto,;font-size:14px;">I have a problem with android lock screen in Qt 5.7 (SDK 25, NDK 13).<br clear="none" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6538" style="">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.<br clear="none" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6539" style="">But there's no such a problem with Qt 5.3.2 (SDK 20, NDK 12).<br clear="none" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6540" style="">I repeated the test with Samsung Galaxy S3 and Samsung Galaxy Note 8.1.</div><div dir="ltr" id="yiv5883052301yui_3_16_0_ym19_1_1478590924892_6541" style="margin-bottom:10px;font-family:Roboto,;font-size:14px;">I'm really stuck there, Please help</div></div></div></div><br clear="none">_______________________________________________<br clear="none">Android-development mailing list<br clear="none"><a rel="nofollow" shape="rect" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_7862" ymailto="mailto:Android-development@qt-project.org" target="_blank" href="mailto:Android-development@qt-project.org">Android-development@qt-project.org</a><br clear="none"><a rel="nofollow" shape="rect" id="yiv5883052301yui_3_16_0_ym19_1_1478927772567_7863" target="_blank" href="http://lists.qt-project.org/mailman/listinfo/android-development">http://lists.qt-project.org/mailman/listinfo/android-development</a><br clear="none"><br clear="none"><br clear="none"></div></div>  </div> </div>  </div></div></div></div><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br><br></div> </div> </div>  </div></div></body></html>