Embedded Android Things provides Java-level APIs for accessing generic device peripherals on Android-based embedded operating systems. Inspired by Google Android Things and OpenJDK Device I/O Project, Embedded Android Things is designed based on Java Native Interface (JNI) and implemented on Android Open Source Project (AOSP).
- Copy these folders
cppandjavato your application main folder. - Change the hierarchy structure of the folder
javabased on your application package. - Execute the shell script
java/../../../EmbeddedAndroidThings/GenerateNativeHeaderFiles.shinside your application main folder. - Change these macros
JNIDEFINE,JNICREATEandPACKAGE_PATHin the native header filecpp/EmbeddedAndroidThings/Include/Essentials.hbased on your application package. - Build your application and enjoy.