You'll have to create a pair of Java-CPP bridge files (Java Native Interface): Java will declare native function signatures that the cpp will define using special macros for the build toolchain and runtime. After that you could go through these guidelines to separate concerns and reduce tight coupling between classes.Īndroid also fully supports C++14 (via clang and CMake), OpenGL ES, and provides various native C++ system calls (the app will still run in its own VM, though), via the Android NDK. I found this tutorial by Google quite useful to get myself acquainted with the IDE, setting up UI and behaviour, extracting literals out of code into XML resource files, using Gradle to build an APK, debugging on the emulator, and general Kotlin syntax and basic paradigms. I'm a C++ gameplay programmer who's just recently begun dabbling in Android development.
0 Comments
Leave a Reply. |