How to add native Android code?

edited September 2014 in Android Mode

I've been playing with the Ketai library to play around with my Android device's sensors and it's a fantastic solution, works really well so far. For my project, I need a little more control over the Android system though and I'm wondering if I can achieve that with the Processing route.

I need to know for sure that the phone is active. Even if the screen is be off (ie. stand-by) I want to be able to wake up and take control of the device. If I'm not mistaken I believe it's possible to achieve that with native Android code through either the PowerManager or AlarmManager API, but I'm not sure if it's possible to do that through the Processing IDE...

Does anyone know if it can be done and how that works?

Sign In or Register to comment.