access hardware using Java code

Sundeep Goel
Can someone please advise how i can access the onboard hardware like
switches, temperature sensor and the IS sensor using java code.

Intention being to write an android application to interact with the SDK
hardware.

Dave McLaughlin
Hi Sundeep,

You need to write a JNI (Java Native Interface) in C/C++ to gain access to
the hardware.

I have started a project here that you can have a look at on how it is
done. The I2C stuff is working. GPIO is work in progress.

http://sourceforge.net/p/friendlyarmgpio/code-0/5/tree/

Dave...