-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Ankur Yadav edited this page Aug 24, 2015
·
14 revisions
#BBBAndroidHAL
Base native code was downloaded from packtpub website. This base code was developed by Andrew Henderson.
###Simple steps for making Android App using BBBAndroidHAL
- Create a new Android project in eclipse.
- Create a jni folder in the project directory.
- Copy all the files from bbbandroidHAL to you jni folder.
- Make proper Android.mk and Application.mk file since the given Android.mk and Application.mk files are configured to generate binary code form C program so that we can test our logic before actually making the Android App. For simplicity I have already created Android.mk and Application.mk files that can be directly used if you do not want to create one by yourself.
- Call ndk-build of Android SDK from you jni directory.
- Now you will be able use JNI interfaces in your Android java programs.
- You can see demo applications for you reference.
Note : If you want to use only few features of BBBAndroidHAL and do not want to compile all the necessary code then you will have to delete those files, and delete there references from Android.mk, bbbandroidHAL.h and jni_wrapper.h