aboutsummaryrefslogtreecommitdiffstats
path: root/examples/androidextras/notification/notificationclient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove QtAndroidExtras module and add note about its state in Qt 6HEADdevAssam Boudjelthia2021-06-291-84/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The JNI utilities (i.e. QJniObject, QJniEnvironment) are already under qtbase as public APIs. Permission handling is now under QCoreApplication::{check,request}Permission and QPermission namespace. Some of the QtAndroid namespace functions are now under QNativeInterface's QAndroidApplication, this includes: * sdkVersion() * hideSplashScreen() * context() and isActivityContext() * runOnAndroidMainThread() The remaining APIs are now moved as private APIs under qtbase ee05af296f65e240f64db6470cdddafbddbf2fa3. That is until we add new cross-platform APIs to replace their functionalities like Intents handling, starting activites and working with Services. Task-number: QTBUG-83251 Task-number: QTBUG-84382 Pick-to: 6.2 Change-Id: Id077f8cbbe223a987916f737fad6088fb58e470d Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* Fix notification example crashingAssam Boudjelthia2020-03-121-5/+7
| | | | | | | | | | | | | | 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>
* Updated license headersAntti Kokko2016-01-201-16/+33
| | | | | | | | | | From Qt 5.7 -> examples are lisenced under BSD license, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new BSD header instead of LGPL21 one (in those files which will be under BSD) Change-Id: I7f0ee687933fa762b6f4419755df4893119949c7 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-121-7/+7
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Id0bb1fd5a9d695520753a280bb1ad5ba1ccc6026 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Update license headers and add new licensesv5.4.0-alpha1Jani Heikkinen2014-08-241-19/+11
| | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Iad800f28f4e85e3f00512400ed9c5ed196c5097a Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Fix license headers in exampleEskil Abrahamsen Blomfeldt2013-11-211-1/+1
| | | | | | | It's a part of QtAndroidExtras not QtWinExtras. Change-Id: I095d39e69dcd1c5362aa50a9e71a29e024fdab38 Reviewed-by: Christian Stromme <christian.stromme@digia.com>
* Rename QJNIXxx classes to QAndroidJniXxx.Christian Strømme2013-10-101-3/+3
| | | | | | | | | The old classes where not following the usual convention for acronyms in class names. Change-Id: I2fad72483c51ca95a2703d914d6a678c5f7cde98 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Remove JNI_OnLoad() from the example.v5.2.0-alpha1Christian Strømme2013-09-261-2/+1
| | | | | | | We use the class loader to get the files Change-Id: I5268dbda5f17c1dfc7332fec35e6da033090605f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Add example of JNI APIEskil Abrahamsen Blomfeldt2013-09-231-0/+74
This example adds a custom class to the project and calls into it with JNI to set a notification message in the status area. Change-Id: I74d7a87c0511b98608422788c1c282e9af57c074 Reviewed-by: Christian Stromme <christian.stromme@digia.com>