In the previous post I touched upon the fact that simulating hardware input events was very slow and not really suited for fast, repeated actions. The second approach is based on MonkeyRunner, a free library included with the Android SDK. It is able to talk to the Android device using a Python-like language. Part 1: http://hackcorellation.blogspot.de/2013/07/android-game-automation-part-1.html
Electronics and programming interspersed at various levels of difficulty.