title: Android: StartActivityForResult to one Activity but return result in another
body: <p>Currently, I have a problem to solve.</p>
  
  <p>My application allow another application (Let say A) start my Application and get the result back.    </p>
  
  <p>Application A call:  </p>
  
  <pre><code> Intent sendIntent = 
   getPackageManager().getLaunchIntentForPackage("com.my.package");
  
   sendIntent.setAction(Intent.ACTION_SEND);
   sendIntent.setFlags(0);
   sendIntent.putExtra("amount", "20000");
   startActivityForResult(sendIntent, 1);
  </code></pre>
  
  <p>Then my app will start MainActivity.<br>
  However, to getting result and send back to app A, I have to start some another Activities, Let say:  </p>
  
  <pre><code> MainActivity -&gt; Activity B -&gt; Activity C --&gt; Activity D.
  </code></pre>
  
  <p>The result can be returned to App A from Activity C or Activity D.  </p>
  
  <p>Note that: I cannot use flag FLAG_ACTIVITY_FORWARD_RESULT because from B to C, I have called "startActivityForResult". (startActivityForResult and flag FLAG_ACTIVITY_FORWARD_RESULT  cannot going together).  </p>
  
  <p>Can you give me some ideas how to achieve this?<br>
  Many Thanks.</p>