title: Use android adb shell to return one activity
body: <p>I have the following problem:</p>
  
  <p>Our company manufactured a android device that have no return button (not physical and not at the bottom of the screen), so I can't return to the previous activity/screen. Now I need to test an App developed by a third-party that only save settings when I return to the previous screen.</p>
  
  <p>Is there any way I can return to the previous screen or emulate a user clicking the return button?</p>
  
  <p>I found this to return to HOME (Android main screen):</p>
  
  <pre><code>adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME
  </code></pre>
  
  <p>Also read about Activity Manager and Exerciser Monkey on these links:</p>
  
  <p><a href="http://developer.android.com/tools/help/adb.html#am" rel="nofollow">http://developer.android.com/tools/help/adb.html#am</a></p>
  
  <p><a href="http://developer.android.com/tools/help/monkey.html" rel="nofollow">http://developer.android.com/tools/help/monkey.html</a></p>
  
  <p>But wasn't able to solve my problem. Anybody knows how to accomplish this call using adb?</p>