jStaff
jStaff

Reputation: 710

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

I'm a newbie on Qt and JNI so please edit or correct me if anything I am saying is off.

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

Upvotes: 1

Views: 1550

Answers (1)

Hubi
Hubi

Reputation: 1639

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.

Upvotes: 1

Related Questions