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

Main function not called by android service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.0 RC
    • 5.12.7, 5.14.1, 5.14.2
    • Extras: Android
    • None
    • qtcreator 4.11.2
      qmake
      linux ubuntu 18.04 as host
      nexus 5x API 29 x86 as emulator
    • Android

    Description

      Hi,
      We encounter the following problem:
      when trying to use a background android service as in the kdab example, the main c++ function of the service is never called whatever the service is in the same .so or in a different .so.

      However the android service called by the activity application starts.

      We tried to modify the manifest with all the possibilities we found in the doc and in the forum, we are stuck.
      We use Qt 5.14.(1 and 2) and android 21, 25, 28 and/or 29 and we also test Qt 5.12.7, the problem remains the same.

      Typically the basic code available at https://github.com/KDAB/android/tree/master/examples/service after adapting the manifest, does not work at all with the above config.

      Any help would be great !

      Thanks,
      Sincerely,
      Thibaud.

      Attachments

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

        Activity

          People

            assam Assam Boudjelthia
            tkloczko Thibaud Kloczko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes