title: Get calling activity from some other activity
body: <p>I am calling an activity from another activity by this code:</p>
  
  <pre><code>Intent intent = new Intent(context, mClass);
  context.startActivity(intent);
  </code></pre>
  
  <p>and from my new activity which is started by this code. I want to know which activity starts this activity. I used this code for this purpose</p>
  
  <pre><code>Intent intent = getIntent();
  Class&lt;?&gt; c = intent.getClass();
  if (c != OffersActivity.class) {
      prepareForNotifications();
      setListAdapter();
  }
  </code></pre>
  
  <p>but by this code I am not able to get the classname which starts this activity. I really need some help.</p>
  
  <p>thanks</p>