Mastering Qt Android
summary
Shows how to extend Qt on Android using JNI to call Java from C++ and vice versa, with a working SD‑card listener implemented end-to-end. Uses the Android extras module to call Java methods, covers two JNI registration approaches (template names exported per method versus a single JNI_OnLoad that calls RegisterNatives), and shows importing Gradle into Android Studio for Java editing and debugging. Explains the two‑thread model (Android vs Qt) and safe cross‑thread calls via runOnUiThread and QMetaObject::invokeMethod.
AI-written summary · about
chapters (10)
- 0:00Introduction to Qt Android
- 1:10What is JNI and why use it
- 3:40Calling Java from C++
- 5:47Calling C++ from Java
- 14:25SD card notification example
- 20:36Qt Android app architecture
- 24:08Extending Java part
- 29:49C++ implementation details
- 35:10Thread safety and event loops
- 41:39Q&A session
related talks
01h 07mTargeting Android with Qt
43mUsing JNI without running into disaster
34mFrom Linux to Android: the samurai's journey
32mGetting Started with the Android NDK
35mGame Development with Unity from an Android Point of View
27mTest and profile Android applications with Qt
46mGame Development With Unity
48mThe Android NDK and its new support in Android Studio/gradle-experimental plugin (en)
