title: startActivityForResult usage for multiple activities
body: <p>i use startActivityForResult for two activities like this</p>
  <pre><code>Activity A -&gt; startActivityForResult(ActivityB,0) 
   -&gt; Activity B -&gt; setresult(10); finish();
   -&gt; Activity A -&gt; if(result==10) {
      dofunction();
   }
  </code></pre>
  <p>but i must use this logic for 4 or more activities.</p>
  <pre><code> Activity A -&gt; startActivityForResult(ActivityB,0) 
   -&gt; Activity B -&gt; finish();
   -&gt; Activity C -&gt; finish(); 
   -&gt; Activity D -&gt; setresult(10); finish();
   -&gt; Activity A -&gt; if(result==10) {
     dofunction(); 
  }
  </code></pre>
  <p>but this does not work.</p>