title: Android return object as a activity result
body: <p>Is it possible to return object as a activity result from child activity to parent? Just something like:</p>
  
  <pre><code>Intent resultIntent = new Intent(null);
  resultIntent.putExtra("STRING_GOES_HERE", myObject);
  setResult(resultIntent);
  finish();
  </code></pre>
  
  <p>If it is possible, how should I retrieve <code>myObject</code> in parent activity?</p>
  
  <p>I figured out, that to retrieve data I need to do something like this:</p>
  
  <pre><code>protected void onActivityResult (int requestCode, int resultCode, Intent data) {
      if(requestCode == REQ_CODE_CHILD) {
          MyClass myObject = data.getExtra("STRING_GOES_HERE");
      }
  }
  </code></pre>
  
  <p>Thing is that I get error, that can not resolve method 'getExtra'....</p>