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

Android: Function onDestroy not called when stopping a service

    XMLWordPrintable

    Details

    • Platform/s:
      Android

      Description

      If I close an Android service by calling stopSelf() the onDestroy() function of the service gets not called.

      The attached example is a slightly modified minimal service example from KDAB.

      Watch the application output over adb for example by calling adb.exe logcat | findstr /I kdab

       

      Expected bahavior:

      If you type "quit" in the message box, the service will be closed and the destructor function onDestroy() gets called.

       

      Actual bahavior:

      The service gets closed but the onDestroy() function is not executed.

        Attachments

        1. qtbug85408PureAndroidApplication.zip
          148 kB
          Tapio Oksa
        2. service.zip
          73 kB
          Vladimír Jícha
        3. servicesameprocess.zip
          13 kB
          Tapio Oksa
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            whoistheguilty Tapio Oksa
            Reporter:
            jech Vladimír Jícha
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes