Introduction
A few years ago, there was a great initiative called Mobile Processing . This was a good starting point to get your Processing sketches to run on cheap Java powered mobile devices, such as cellphones. This project isn't actively developed anymore, because smartphones have gained a lot of the market.
In Processing 2, there is a better method to get your Processing sketches to run on a mobile device: Android mode . This new mode enables you to run your sketches in the Android Emulator or on an Android device. You can also access the global positioning system (GPS) or the accelerometer from Processing, and make your sketch react to the touchscreen. In this chapter, we'll take a look at how we can create Android apps with Processing.