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

Android: Add option to change the background running property during runtime

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.1
    • Extras: Android
    • None
    • Android

    Description

      If an application needs to continue to handle signals when it is in background then the Android manifest has to be altered which adds the
      QT_BLOCK_EVENT_LOOPS_WHEN_SUSPENDED=1 environmental variable:

      <meta-data android:name="android.app.background_running" android:value="true"/>
      

      Under some circumstances it is very useful to only temporary enable the background signal processing. For instance when music is playing then the app might need to continue to receive signals.

      Attachments

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

        Activity

          People

            rampe Rami Potinkara
            DanielSt Peter Staab
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes