Intent problem, return value (Android)
<p>I have an application that open an other class using intent : </p>

<pre>
private void createRepository(){
        Intent j = new Intent(this, Repository.class);
        startActivityForResult(j, ACTIVITY_CREATE);
    }
</pre>

<p>In Repository.class we have the <strong>onActivityResult</strong> method :</p>

<pre>
public void onActivityResult(int reqCode, int resultCode, Intent data) {
      super.onActivityResult(reqCode, resultCode, data);

      switch (reqCode) {
        case (PICK_CONTACT) :
          if (resultCode == Activity.RESULT_OK) {
            Uri contactData = data.getData();
            c =  managedQuery(contactData, null, null, null, null);
            if (c.moveToFirst()) {
              //String name = c.getString(c.getColumnIndexOrThrow(People.NAME));
              num = c.getString(c.getColumnIndexOrThrow(People.NUMBER));

            }    

          }    
        break;
      }
      finish();
    }
</pre>

<p>I don't know how I can return the value of <strong>num</strong> to the first class (that create Repository.class).
Thank you for your help.
Michaël</p>
