I am trying tha have an android app, that runs on board and communicate with the sensor/actuator via I2C/SPI.
I tried to find a suitable library to integrate in my app, which than can be ported on the Board, but unable to find.
I went through the documentation: https://en.alpha-star.org/docs/software-development/how-to-debug-i2c/2-i2c-code
The code given here is in C, which i will have to integrate in my Java based Andorid App.
Is it the only solution for achieving this communication?
This is a common approach to low-level access on Android platforms.
Put another way, why would an Android phone offer its applications a Java API to access an I2C peripheral?