aboutsummaryrefslogtreecommitdiffstats
path: root/examples/androidextras/notification/notification.pro
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2020-03-04 14:42:13 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2020-03-12 19:06:57 +0200
commita55cae70165206bd2a04306291fb3442968b69c3 (patch)
treef7b43a7d0eff5efc7c2ad5236770b7df2829a1c8 /examples/androidextras/notification/notification.pro
parentf4d122b2912e7bc13c9e076a32a6b5c080aa4825 (diff)
Fix notification example crashing
The notification example needed some fixing because it was crashing, now passing context from C++ side. There are some changes to the Android Notification API, so some changes has to be made to make sure the example works for different old and new Android API levels. + Updating the icons. Task-number: QTBUG-80717 Change-Id: I1560e31b73233895053b1a9a6a523a7b163c5d89 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'examples/androidextras/notification/notification.pro')
-rw-r--r--examples/androidextras/notification/notification.pro12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/androidextras/notification/notification.pro b/examples/androidextras/notification/notification.pro
index a3ce911..b2fdec8 100644
--- a/examples/androidextras/notification/notification.pro
+++ b/examples/androidextras/notification/notification.pro
@@ -1,16 +1,9 @@
QT += quick androidextras
-ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources
-
SOURCES += \
main.cpp \
notificationclient.cpp
-OTHER_FILES += \
- qml/main.qml \
- android-sources/src/org/qtproject/example/notification/NotificationClient.java \
- android-sources/AndroidManifest.xml
-
RESOURCES += \
main.qrc
@@ -19,3 +12,8 @@ HEADERS += \
target.path = $$[QT_INSTALL_EXAMPLES]/androidextras/notification
INSTALLS += target
+
+ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
+OTHER_FILES += \
+ android/src/org/qtproject/example/notification/NotificationClient.java \
+ android/AndroidManifest.xml