title: Getting instance of started activity
body: <p>I a starting an Activity from a non-Activity class using the context. The Activity starts fine, but I need its instance immediately after the start up. Is there any way to the instance?</p>
  
  <p>Here's what my code looks like:</p>
  
  <pre><code>Intent intent = new Intent(MyApp.getAppContext(), MyActivity.class);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  MyApp.getAppContext().startActivity(intent);
  
  Activity a = ???
  doSomethingWithInstace(a);
  </code></pre>