Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android - Set android.app.background_running to True
Forum Update on Monday, May 27th 2025

Android - Set android.app.background_running to True

Scheduled Pinned Locked Moved Mobile and Embedded
androidqt quickbackground
2 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orby
    wrote on 24 Aug 2015, 06:34 last edited by
    #1

    When building an app for android, the AndroidManifest.xml has the following line:
    <meta-data android:name="android.app.background_running" android:value="false"/>

    How do you set this value to true in the Qt project, so when the AndroidManifest.xml is generated during each build, it will have the value="true"?

    I can change the manifest by hand after building the project, and then running ant manually and installing the app manually, but that is cumbersome.

    Thanks,
    -Orby

    O 1 Reply Last reply 6 Sept 2015, 00:15
    0
    • O Orby
      24 Aug 2015, 06:34

      When building an app for android, the AndroidManifest.xml has the following line:
      <meta-data android:name="android.app.background_running" android:value="false"/>

      How do you set this value to true in the Qt project, so when the AndroidManifest.xml is generated during each build, it will have the value="true"?

      I can change the manifest by hand after building the project, and then running ant manually and installing the app manually, but that is cumbersome.

      Thanks,
      -Orby

      O Offline
      O Offline
      Orby
      wrote on 6 Sept 2015, 00:15 last edited by
      #2

      @Orby I finally figured this out.

      Go into project -> android build options -> Details on build android APK

      Click create templates, now you can edit that AndroidManifest.xml and set the option to true.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved