title: Activity starts again after onResume()
body: <p>I am developing an app, when app starts, a screen shows up (splash screen), wait 3 sec and go to second screen. So when I use return button on phone or emulator, it goes to first screen and then waits 3 secs, then starts second screen again, so far it is okay.</p>
  
  <p>But when I press return button while I am at first screen, I go to menu, but Timer/Handler event already started, so app starts again, even I am at in menu. App. starts because of initiation of second screen, after turning back to menu How can I avoid this problem? I don't want to restart the app when user goes to menu on their phone. I tried to do something with onPause and onStop but couldn't manage it. I need something like, if return from splasn screen, app must shutdown, I think.</p>
  
  <p>Here is my delay code, PreAcilis is first screen that shows up, Acilis is second screen.</p>
  
  <pre><code>@Override
  protected void onResume() {
  
      final Handler handle = new Handler();
      Runnable delay = new Runnable() {
          public void run() {
              Intent intent_basla = new Intent(PreAcilis.this, Acilis.class);
              startActivity(intent_basla);
          }
      };
      handle.postDelayed(delay,3000);
      super.onResume();
  }
  
  @Override
  protected void onStop() {
      super.onStop();
  }
  </code></pre>
  
  <p>}</p>