Android - Set android.app.background_running to True



  • 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



  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.