Some code about automation in Android