Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Hardware Interfacing with the BeagleBone Black

You're reading from   Android Hardware Interfacing with the BeagleBone Black Design and implement Android apps that interface with your own custom hardware circuits and the BeagleBone Black

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784392161
Length 134 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

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 apps right away without worrying about the details of building PacktHAL. Once you begin creating your own custom apps and modifying PacktHAL for your own hardware projects, you will need to understand how to build PacktHAL from source.

Understanding...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image