title: Is there an method in Android which equivalent to applicationDidBecomeActive?
body: <p>I try to use onStart() or onResume() at first. However, there are two drawbacks to use them.</p>
  
  <p>1, If I start another activity and dismiss it later, as follow. (Kind of like modal present a new viewcontroller and then dismiss it)</p>
  
  <pre><code>private void dismiss() {
     Intent intent = new Intent();
     intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
     intent.setClass(this, MainActivity.class);
     startActivity(intent);
     finish();
  }
  </code></pre>
  
  <p>onResume() will still be called</p>
  
  <p>2, I can't reuse the same login in other activity.</p>
  
  <p>Therefore, I wonder if there is an method in Android is exactly the same as - (void)applicationWillResignActive:(UIApplication *)application in Android</p>