title: Android emulate back pressed from a Service
body: <p>I am developing a utilitiy application that will automate certain tasks for the user, such as opening an app and then going back to the previous activity.</p>
  
  <p>For this specific functionality, I have a background service that starts a third party activity via <code>startActivity()</code>, waits for a few seconds for the activity to loads completely and then bring the user back by emulating a Back button press.</p>
  
  <p>I am stuch at the Back button press emulation. I don't want to just start the Launcher activity to bring the user to the home screen. I want him to go back to what he last used.</p>