Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78009

Android services grouped into one process do not start

    XMLWordPrintable

Details

    • Android

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              taipan BogDan Vatra
              dawid Dawid Kubiszewski
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes