Key Events in Android Device Automation
If you are looking to automate your android device there are instances when the automation tool/scripts need to run the adb shell commands to achieve the actions:
If you are using seeTest one of them is:
client.run("adb shell input keyevent 26");
For more commands look at:http://developer.android.com/reference/android/view/KeyEvent.html
Happy Android automation!