get data onActivityResult from another application
<p>I have two application A and B. </p>

<p>Application A</p>

<p>the following code I launch B Application for get Result from A application activity ..</p>

<pre><code>   String packageName = "com.cm.applicationb";
            PackageManager manager = context.getPackageManager();
            Intent i = manager.getLaunchIntentForPackage(packageName);
            i.addCategory(Intent.CATEGORY_LAUNCHER);
            i.putExtra("grand_total", "2500");
            i.setAction(packageName);
            startActivityForResult(i, REQUEST_DATA);
</code></pre>

<p>From Application A call onActivityResutl</p>

<pre><code> @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if(requestCode==REQUEST_DATA)
        if (resultCode == Activity.RESULT_OK) {
            me=data.getStringExtra("Obj");
        }
    Toast.makeText(getApplicationContext(),me,Toast.LENGTH_LONG).show();
}
</code></pre>

<p>B Application setResult Data</p>

<pre><code>     Intent i=new Intent();
                i.putExtra("Obj", "object");
                setResult(Activity.RESULT_OK, i);
                finish();
</code></pre>

<p>Ever retrun null data and resultcode from onActivityResult. How we can solve it? It is impossible get data onAcitivityResult from another applicaion setREsult. Anyone please help me for us. Thank you so much.</p>