After changing android target SDK version to 31, some missing values has
to be defined in AndroidManifest.xml.
AndroidManifest.xml template was updated in qtbase in:
56dee3de5e4ac1c4d37a2c5e27361e7ddbdea1a7 commit. In case when example
uses its own AndroidManifest.xml file, it need to be updated separately.
* android:exported="true": because the manifest sets an intent-filter,
and it then has to explicitly to avoid the warning [1].
* android:allowBackup="true": this has to be explicitly set, we set it
to the default value here [2].
* android:fullBackupOnly="false": SDK 23+ use this to deteremine to
user auto backup or not, we set it to the default value here [3].
[1] https://developer.android.com/guide/topics/manifest/activity-
element#exported
[2] https://developer.android.com/guide/topics/manifest/application-
element#allowbackup
[3] https://developer.android.com/guide/topics/manifest/application-
element#fullBackupOnly
Fixes: QTBUG-112843
Change-Id: I79bb201fe74b7e3f321ec6654a133611f01af8da
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 83e139db35)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
After the recent change in qtbase, the AndroidManifest.xml files became
much smaller. As a drawback, the example projects no longer compile with
the old manifest files.
This patch removes all the unneeded data from the manifest files of the
QtNFC examples, and make them compile under Android again.
Change-Id: I93a338e103950eabb9105efda61b6564de116428
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 67a04a3e56)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This patch updates Annotated Url NFC example to support automatic
application startup, when running on Android. The example documentation
is also extended to cover this case.
Task-number: QTBUG-94033
Change-Id: Iec94e5e97bc13e5083842838c78f4e988d8c5f70
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>