amidoinitrite,  homework

Running a sketch in the Android Emulator and on a device

Making my way through the Running your sketch on the Android Emulator recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe I learned how to run a sketch on my Android device. I did this by  creating a sketch from the sample code, enabling USB debugging on my device and then selecting Run on device from the Sketch menu in Processing. Processing then compiled the code and then installed it on my device. Neat.



Unfortunately, I had some issues with running my sketch in the Android Emulator. Not a huge problem.


I also learned how much fun it can be to install an Android SDK and then try and get it to work properly with Processing. I had an issue with successfully running a sketch in the emulator and on a device using Processing 2.1.2 and the latest Android SDK.


Of course, I didn’t think that I was the only person who’d ever had this issue. So, I poked around on the Processing Forum and found a forum post with solutions to the Android java issue that was similar to my own. Downgrading Processing from 2.1.2 to 2.0.3 was the solution that worked for me. Awesome.

Leave a Reply

Your email address will not be published.