qtjava-native-interface

How can you access any android classes using JNI in Qt?


How can you access the classes in Android in the C++ code in Qt Creator? It is seemingly not possible to access classes not directly supported by QtAndroidExtras import.

e.g. TextView, BlueToothReceiver, and the countless many useful classes


Solution

  • Here is a good example:

    http://doc.qt.io/qt-5/qtandroidextras-notification-example.html

    It is possible to call any class from C++ per jni.