I don't know how services differ from activities, but having done quite a few things with activities, I say yes, the Android Service/Activity start sthe Qt Thread. I don't know of anyway for the OD to start Qt directly... For my activity I have a platform shim that uses a single ton that has to deal with tings when there is no platform shim yet created (it's created i the main() of the Qt thread)
 
 
 
 
Sent: Wednesday, May 10, 2017 at 12:44 PM
From: "Bernhard B" <schluc...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] Question regarding Qt Android service
Hi,
 
a quick question regarding Qt Android service: Is it guaranteed, that the Qt thread will always start after the Android service has started? Or is it possible that the Qt thread starts before the Android service is fully initialized and started?
 
I want to call a JAVA function via JNI from the Qt thread right after the start, so I need to make sure that the Android service is fully initialized and up at that point. Can that be guaranteed?
 
Thanks,
Bernhard
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to