This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

android app for beaglebone black



Hi sir,

               i have control gpio via  adb shell and it work fine. now i want to control gpio by android app. i don't know how to develop android app for gpio. (i know normal app development)

how that app recognize the BBB gpio or any other external hardware(uart,adc). could you tell me how to start this or give me any example for gpio control by app.

thank you,

  • Hi,

    There are 2 ways to talk to GPIO:
    1) from userland: use the /sys/class/gpio API directly from your Java application (or JNI). Might require configuring permissions.
    2) develop a driver in the linux kernel, and abstraction layer in Android, then a Java binder API to your application. 

    Those 2 ways are valid for most of the hardware components in an embedded system.
    For case 2), the most common ones can already provide the Java API, and you only need to develop/reuse the driver, then implement the abstraction layer.