title: android - using pending intent to start activity
body: <p>I have 2 apps App1 and App2. I need to test sending a pending intent from App1 to App2 that allows App2 to start an activity in App1.</p>
  
  <p>In App1 (Main Activity):</p>
  
  <pre><code>Intent i = new Intent();
  i.setClassName("com.android.testapp1.app", "Activity2");
  PendingIntent pit = PendingIntent.getActivity(getApplicationContext(), 1, i, 0);
  Intent intent= new Intent();
  intent.setAction("com.android.testapp2.app.activity2_action");
  intent.putExtra("pi", pit);
  
  startActivity(intent);
  </code></pre>
  
  <p>In App2's Activity2 :</p>
  
  <pre><code>Intent i = getIntent();
  PendingIntent pi = i.getParcelableExtra("pi");
  pi.send();
  </code></pre>
  
  <p>This doesn't launch App1's Activity2. What am I missing in this use of pending intent ? Am I using pending intent the wrong way ?</p>