How do i get parent caller
<p>Let us say that user opens Twitter app and hits share button for a selected tweet. He then sees my app in the list along with other apps like Gmail, SMS etc.</p>

<p>In OnCreate method of my activity, I process the tweet. Remove short links etc and then call the PostActivity of twitter app. Below code then shows "My tweet" in compose tweet section of twitter app.</p>

<pre><code>                    Intent intent1 = new Intent("android.intent.action.MAIN");
                intent1.setComponent(new ComponentName("com.twitter.android","com.twitter.android.PostActivity"));
                intent1.setAction(android.content.Intent.ACTION_SEND);
                intent1.putExtra(android.content.Intent.EXTRA_TEXT,"my tweet");
                intent1.setType("text/plain");
                startActivity(intent1);
</code></pre>

<p>What i want to do is ,before i call PostActivity, i need make 100% sure that my activity was called from twitter app. </p>
