C/C++ libraries for Android games
summary
Google’s HDK delivers C/C++ libraries as AARs and Prefab packages that link via Gradle and CMake and remove most JNI plumbing. Game Activity exposes a C API and native glue for lifecycle, SurfaceView rendering, and Jetpack compatibility so engines can receive activity and input callbacks directly. Text Input API drives the IME: show/hide keyboard, composition, selection, spell check and callbacks without a Java edit box. Controller API enumerates devices, reports dual‑stick input, vibration/motion, and connection events for per‑frame polling.
AI-written summary · about
chapters (10)
- 0:00Intro
- 1:45What is Game Activity?
- 3:18Using Game Activity in Java
- 3:36Using Game Activity in C/C++
- 4:40What is Game Text Input API?
- 5:21Using Text Input API
- 6:47What is Game Controller API?
- 7:28Using Game Controller API
- 8:05What is an AAR package?
- 8:32How to add a C/C++ AAR to your game project?
related talks
35mGame Development with Unity from an Android Point of View
48mIt's all Fun & Games on Android
37mFun with Native Code on Android
24mBuilding an awesome game for Android
41mFireside Chat with the Android Team
16mAndroid Graphics
31mWhat's new in Android C++ development
33mUnlocking Unity for Android Developers: Blending Android and Unity in Harmony
