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

Android: Function onDestroy not called when stopping a service

    XMLWordPrintable

Details

    • 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

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

        Activity

          People

            whoistheguilty Tapio Oksa
            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