| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Task-number: QTBUG-88742
Change-Id: I702459fb5be26ba2183745eecc246b607c9409bf
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: QTBUG-88742
Change-Id: I45d52013f5f34919ee85c7ec6195073ad587a912
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The warning
qandroidserviceconnection.h includes QAndroidJniObject when it should
include QtAndroidExtras/QAndroidJniObject
is emitted on each build. This patch follows the warning's advice.
Change-Id: Ic73bd5e855600c28aa8e882da530a8801cdce681
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Recreated all CMake files in QtAndroidextras using
run_pro2cmake.py . --only-existing -- --api-version 3
and update qtbase dependency.
Change-Id: I8dc07ae08b49cee41f18297cf13c4c57c36cae12
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
Rename Android package name org.qtproject.qt5.android to
org.qtproject.qt.android to avoid inconsistency with Qt 6 name.
Also, we include the major version number in the jar target.
Task-number: QTBUG-86969
Change-Id: I69cff0ca92dd2f365ea5a5e977fbbbe9833800be
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 5.15
Change-Id: I82a34fe82c2257685cdc9a6a278f2d7b476f336c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
| |
|
|
|
|
|
|
| |
This is required to allow qobject_cast<QAndroidService>(qApp).
Task-number: QTBUG-84382
Change-Id: Ia8654acc8388b5371ca9d4291a7404ad828638b0
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
|
| |
|
|
|
|
| |
Task-number: QTBUG-85179
Change-Id: I606f144a63dbb216663bbe402a1ab8e1b68f5d0f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
| |
|
|
|
|
|
|
| |
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I54ea2f8ce980aabed8393a832d52811234a3ab58
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
|
| |
|
|
|
|
| |
Task-number: QTBUG-73409
Change-Id: I994fb873c140a13151bde4ef065fd21f22701b93
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
An example that retrieves music data from Java APIs, and store that in
a Java ArrayList of objects. Then, how to pass that data to Qt via C++
and QML.
Pick-to: 5.15
Task-number: QTBUG-83038
Change-Id: I5201572b997973388c688ca0d3f2f30240da12f6
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 5.15
Task-number: QTBUG-83038
Change-Id: I87a631551c3c6fbb22eaaf56acad6b8ae87f4560
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |\
| |
| |
| | |
Change-Id: Iaf6d347954107fb26b179b7d3cb2662b3df504db
|
| | |
| |
| |
| |
| |
| | |
Task-number: QTBUG-80390
Change-Id: Ie37723184980c37bde6f868c3a85294b926673dd
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
| | |
| |
| |
| |
| |
| |
| | |
Task-number: Pick-to: 5.15
Task-number: QTBUG-83038
Change-Id: Ic789dfc55d73fba39ed2acf8f1b4376f772b7626
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Pure Android service in the same process.
* Android Services with BroadcastReceiver with same .so file
and separate .so file.
* Android Service with QAndroidBinder in separate .so file.
Pick-to: 5.15
Task-number: QTBUG-83038
Change-Id: I24a4dbe4f1de56736625cfdfe2e7fc3ea4905de5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
|
| |/
|
|
|
|
|
| |
Task-number: QTBUG-78171
Change-Id: I2f8b19a4c0af57461ad7b11cc58935c4991cb46e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
This examples shows the proper way to communication between QML/C++
and Java in both ways. This example calls a Java method from QML and
C++, then the Java method will also call back a C++ function that will
be forwarded to a QML connection.
Task-number: QTBUG-80717
Change-Id: I96d9551d1abcaf80899c4dd3c727a267fb6f3c07
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
Update instance of old code using JNI_VERSION_1_4 to make the code
consistent.
Change-Id: I273f7224daa6a5f0bf7541e6ed61029cbdc790d5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Remove references of resultReceiver parameter from a new
QtAndroid::startActivity() overload, as it has no such parameter.
Add a few dummy typedefs specific to documentation builds, to avoid
the Clang-parser from tripping over undefined types on non-Android
platforms.
Fixes: QTBUG-79813
Change-Id: I6972ae7d5b8d4ca7f338af8958ccf3cf43dce71c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
| |\
| |
| |
| | |
Change-Id: I6796a88dae9e17bafc7696abecb4bba271665241
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
The Java function putExtra() returns an object, so it should be called
with callObjectMethod() instead of callMethod().
Fixes: QTBUG-77101
Change-Id: Id6bb402c05b119257fb331db1eb4e016a94c0d52
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| | |
| |
| |
| |
| |
| | |
Task-number: QTBUG-74391
Change-Id: Ie2b5f498fa6f4effc27f07f3aab0061fa77e94c9
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
The current way of handling activity results by inheriting from QAndroidActivityResultReceiver
is very un-Qt. This patch allows handling activity results by passing a std::function/lambda
expression to the startActivity function.
Change-Id: Ie9dc91cd02dfcdb16a9ad0cb7858387e75159815
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |/
|
|
|
|
|
|
|
|
|
| |
The function simply calls the other startActivity with
QAndroidIntent::handle, anyone could do that from the user code, but i
think it makes sense the library to allow you doing this directly given
you're supposed to pass an intent and we have a class that represents an
intent
Change-Id: I673cb410b07ed4fd1408a971696a3b5ae3dfd063
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In file included from qtbase/include/QtCore/5.12.0/QtCore/private/qjni_p.h:1:
qtbase/include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/kernel/qjni_p.h:68:1: warning:
'QJNIEnvironmentPrivate' defined as a class here but previously declared as a struct [-Wmismatched-tags]
class Q_CORE_EXPORT QJNIEnvironmentPrivate
^
jni/qandroidjnienvironment.h:50:1: note: did you mean class here?
struct QJNIEnvironmentPrivate;
^~~~~~
class
Change-Id: I0df1a4350c50ca920ad7f13978a62913a9702a15
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
| |
Change-Id: I8e9d534e8752466c57d79cbb136c4dec01c8695e
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
|
|
|
|
| |
The use of QT_INSTALL_HEADERS caused documentation build failures
in certain configurations. Use an alternative method to pass the
required include paths to QDoc.
Task-number: QTBUG-67925
Change-Id: Ia8c25b0cfb950f43ec60a3768cd192588a5e5617
Reviewed-by: Martin Smith <martin.smith@qt.io>
|
| |\
| |
| |
| | |
Change-Id: I88b7094f8b625c14f2524576e73cf7fc3f807a1d
|
| | |
| |
| |
| |
| |
| |
| | |
Task-number: QTBUG-70284
Change-Id: Ic2a0613f3f57661e8c6b4665cefbd6dc73fd37f3
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
QAndroidJniEnvironment::findClass is a convenient method needed to find
classes in all class loaders.
[ChangeLog][QtAndroid]
QAndroidJniEnvironment::findClass convenient method to find classes in
all class loaders.
Change-Id: I23c9e8a02aa7ca02cf707be5548ce1f8bb555dd7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |
|
|
|
| |
Change-Id: Id585a4f8fb21eb263a601857b47e3fcfcb2c7f4a
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QDoc in Qt 5.11 uses Clang to parse the C++ source for documentation
comments. Unlike the old parser, Clang requires a module header to
be present as well as correct include paths to generate the docs
correctly. However, these are available from the build system only
when building for Android, not when generating the documentation
on a system with no Android-related assets.
To fix this, create a 'dummy' module header specific to doc builds,
add required relative include paths in .qdocconf, and fix the
documentation \fn commands to work with Clang.
Change-Id: Ia3d4e50ff8756cd8c8aae9cd3c3d1492eb7db328
Reviewed-by: Martin Smith <martin.smith@qt.io>
|
| |\
| |
| |
| | |
Change-Id: I614aee68dea8253732b72e4534750897583aab45
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
constructor exits
If we call QtAndroidPrivate::setOnBindListener before QAndroidService constructor exits the virtual table
is not set and m_service->onBind will call the wrong method.
Task-number: QTBUG-66222
Change-Id: I3d057e33dd36a317c5605d7eb5d6892827ad7b13
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Until now the users were forced to subclass QAndroidService in order to
provide the binder. Now is much easier, the user just pass a lambda in
the QAndroidService constructor e.g.
QAndroidService app(argc, argv, [](const QAndroidIntent &){ return new
MyBinder{};});
Change-Id: I97608f806b311ad3c853a86cde132aea8352349b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |\|
| |
| |
| | |
Change-Id: I1f8c55c8647779c972d7d152ecd0c56bdf66a586
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
.qmake.conf
Change-Id: I67661e95e931fd7c6992f8f1769c50472c5e5f15
|
| | | |
| | |
| | |
| | |
| | | |
Change-Id: Icfe3f6a712a8e457dd695b5f0f982760eb78f4f1
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
|
| | | |
| | |
| | |
| | |
| | | |
Change-Id: Ia4fbd4718a698e0d4a0835869e51852c12b1442d
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This removes the pre-dexed JAR files activated by the absence of the
bundled_jar_file CONFIG option, as versions of Android >= 5 no longer
support this deployment mechanism.
Now, the "bundled" JARs simply become normal JARs containing class
files, and are neither activated by a bundled_jar_file CONFIG entry nor
do they have a -bundled suffix in the file's base name.
Task-number: QTBUG-62995
Change-Id: Id370f03de61463bb3a8312d357374cf5c89fca69
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
|
| | |
| |
| |
| |
| |
| | |
Task-number: QTBUG-50759
Change-Id: Ie7fef30049e6be28c3fba2eb5b54b56552df8c9d
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These are the building blocks for higher level APIs such as Qt Remote
Objects.
[ChangeLog][Android] Added low level APIs for Android Service & Binder.
Change-Id: I320214d310a398541bbde985ecf67bf6101c0b67
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| | |
| |
| |
| |
| | |
Change-Id: Ib9d88dee71459d61d12bb975e24e8e59e687434d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
|
| |/
|
|
|
|
| |
Change-Id: If78fe57fd5ceccad541fb2b3d7a92eefcda06057
Task-number: QTBUG-59200
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][QtAndroidExtras][QtAndroid] Added QtAndroid::androidContext()
Task-number: QTBUG-55102
Change-Id: I95122c8939e227acffb13ea9ba1a338a9d05595a
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |\
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
Change-Id: Idbbad4585c05ea7c42c5d60e8b74ec20ca3d8737
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Should be reverted when https://github.com/android-ndk/ndk/issues/34 is fixed
Change-Id: Idcc951ff432dbadd57a09851bcb7486b019b3426
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|