[Android-development] Activity not starting with foreground service

Filip Piechocki fpiechocki at gmail.com
Mon Dec 3 19:21:07 CET 2018


Hi,
I am just building some app with Qt on Android. It consists of an Activity
and a Service (ran as an foreground service as I want it to not die). The
thing is, that with Qt 5.11.2 and 5.12.0-rc built with android-clang (ndk
18, clang 7) it works at the beginning but then when I close the Activity
from within the apps view and relaunch it then it hangs even before logs
like "QtCore: starting". What I need to do is to force stop the service and
relaunch the activity but that's a showstopper to me. I haven't enough time
today to recheck with some older version but I was making some PoC with Qt
5.11.1 built with GCC and ndk 17 and it was working as expected (activity
could be easily killed and relaunched with services running all the time).
Is there anything that I might be doing wrong here?

BR,
Filip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20181203/56a5f4aa/attachment.html>


More information about the Android-development mailing list