title: How can I make an android app stop restarting every time it is opened?
body: <p>I developed a small android application and recently discovered a strange behavior.</p>
  
  <p>When I navigate to an arbitrary Activity after installing this app using usb and eclipse I can leave the app, go to the android home screen or another application and then return to the mentioned arbitrary Activity directly by "starting" the application again.</p>
  
  <p>But when I install the application on the phone directly by downloading the apk-file, I will always return to the root Activity of the application when I return to this app, after I switched to another application or the android home screen.</p>
  
  <p>Does anybody know where this behavior comes from or how I can fix this issue?</p>
  
  <p><em>UPDATE:</em> I run the application on real hardware in both cases.</p>