Various ways to automate things in Android:

Higher-level scripting languages