title: How to restart/resume my background activity?
body: <p>I have activity A which is activited by receiver B when new sms comes.<br/>
  suppose I started activity by clicking on app icon and it starts activity A.<br/>
  now I am pressing HOME key in my activity goes in background.<br/>
  now if any sms comes than i want to start that old activity first or finish that old activity.
  <br/>
  following is my code to call activity A  from receiver B:<br/></p>
  
  <pre><code> Intent intentSms = new Intent(context, A.class);
   intentSms.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   context.startActivity(intentSms);
  </code></pre>
  
  <p>can i do it ? <br/>
  if any body knows please reply.</p>
  
  <p>Thanks.</p>