Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Is there a terminal command to go to the home screen?

I need to do this via ssh, so I cannot just push the "home" button, I need to send a command-line action..

share|improve this question

2 Answers 2

up vote 13 down vote accepted
am start -a android.intent.action.MAIN -c android.intent.category.HOME

More info about shell commands: an archived version of the AndroidWiki page

share|improve this answer

Consider taking at look at the following link: http://developer.android.com/reference/android/view/KeyEvent.html

input keyevent KEYCODE_HOME

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.