title: how to decide which activity we came from?
body: <p>Hello Old sports !</p>
  
  <p>To the point, I have 3 activity as follows :</p>
  
  <p>-Activity A</p>
  
  <p>-Activity B</p>
  
  <p>-Activity C</p>
  
  <p>in activity A I create an intent to go to activity C:</p>
  
  <pre><code>Intent intent=new Intent(getActivity(),C.class);
  startActivity(intent);
  </code></pre>
  
  <p>in activity B I create intent to go to activity C too:</p>
  
  <pre><code>Intent intent=new Intent(getActivity(),C.class);
  startActivity(intent);
  </code></pre>
  
  <p>in activity C I am going to do something different if it's from A and B.</p>
  
  <p>The question is what is the best practice on 'how to let activity C know whether activity A or B that is calling ?</p>
  
  <p>-sorry lack English, greeting from bali..</p>