Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.13.0
Description
Android system enables grouping services into one process in operating system by setting the same "android:process" property for multiple services in Manifest file:
... <service android:process=":process1" android:name=".Service1"> ... </service> ... <service android:process=":process1" android:name=".Service2"> ... </service> ...
When I group two Android services to run in one process and start both of them simultaneously, then one of the service is started first and works for around 19 secs then it is stopped and second service is started.
Entry point for services:
int main(int argc, char* argv[]) { qInfo() << "service entry point"; QCoreApplication *app = new QAndroidService; TestService service; auto uri = QStringLiteral("com.example.TestService"); TestCore::instance()->host()->enableRemoting(&service, uri); return app->exec(); }
Log "service entry point" for second service is showed after the first service is stopped.
Attachments
Issue Links
- is required for
-
AUTOSUITE-1161 Grouping Android services in one process is not supported in ivigenerator server_qtro template
- Closed
- relates to
-
QTBUG-86257 Remove restriction to run Qt Android Services only in separate process
- Open