Use Android Open Accessory Without Android Programming

Arduino Computers & Mobile
Use Android Open Accessory Without Android Programming

“follower” wrote in with yet another cool project for the Android Open Accessory SDK. This time, you don’t even need to do any Android programming; your Arduino Sketch tells follower’s Android app what to do and what to display on the screen:

Handbag makes it possible to create Arduino-based accessories for Android devices without creating an Android app. You both define the Android application user interface and implement the behaviour in your Arduino sketch.

Here’s an example of how you would (currently) create an interface with a label, some space and a single button:

configureWidget(UI_WIDGET_LABEL, ID_NONE, "Example Handbag Android Accessory");
configureWidget(UI_WIDGET_LABEL, ID_NONE, "");
configureWidget(UI_WIDGET_BUTTON, ID_B1, "Toggle Digital Pin 4");

Handbag: the Android Arduino Accessorizer

If you’re going to be at the O’Reilly Open Source Convention in July, be sure to check out follower’s Get Started with the Arduino – A Hands-On Introductory Workshop.

Discuss this article with the rest of the community on our Discord server!
Tagged

I'm a tinkerer and finally reached the point where I fix more things than I break. When I'm not tinkering, I'm probably editing a book for Maker Media.

View more articles by Brian Jepson

ADVERTISEMENT

Ready to dive into the realm of hands-on innovation? This collection serves as your passport to an exhilarating journey of cutting-edge tinkering and technological marvels, encompassing 15 indispensable books tailored for budding creators.

FEEDBACK