O'Reilly logo

Android for the BeagleBone Black by Aravind Prakash, Andrew Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Including PacktHAL within your apps

Before diving into using PacktHAL to interface with GPIOs, you must understand how to include PacktHAL support in your apps. We will walk you through the process of adding the PacktHAL code into your app and then building it. PacktHAL will be packaged with your app in the.apk app as a shared library. The source code for the library exists within the app's project directory, but it is built separately from the Java code of the app. You must manually build the PacktHAL shared library before your app can include it within the .apk app and use it.

Note

We include a prebuilt version of the PacktHAL library in each of the example app projects included with this book, so you can jump into building and running the example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required