title: Dont receive intent from other application
body: <p>In my first app I run the second one with the following code:</p>
  
  <pre><code> Intent myIntent = new Intent();
              myIntent.setClassName("com.XXX.XXX", "com.XXX.XXX.Main");
              myIntent.putExtra("date", date);
              startActivityForResult(myIntent, 1);
  </code></pre>
  
  <p>In App B I send some extras back to App B:</p>
  
  <pre><code>Intent resultIntent = getIntent();
          resultIntent.putExtra("extra", value);
          setResult(Activity.RESULT_OK, resultIntent);
          finish();
  </code></pre>
  
  <p>In App A I want to get the value extra:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
  
  
          if (requestCode == 1) {
              if (resultCode == RESULT_OK){
                  String street = data.getStringExtra("extra");
              }
          }
  }
  </code></pre>
  
  <p>When I run it, <code>resultCode</code> is always 0 (<code>RESULT_CANCELED</code>) and data is null in <code>onActivityResult</code>. What's wrong with my code?</p>