title: onActivityResult is not getting called
body: <p>When I return from the child activity the onActivityResult is not called in the mainActivity. I am using finish() in the child activity.  Could you please let me know the reason ?</p>
  
  <p>Thanks in Advance.</p>
  
  <h2>MainActivity</h2>
  
  <pre><code>private void goToHomePage() { 
      if(connected){
          basket.putString(key, "dummy");
          Intent i = new Intent(Splash.this,HomePage.class);
          i.putExtras(basket);
          startActivityForResult(i,0);  
      }else{
          alert(); 
      } 
  }
  
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      // TODO Auto-generated method stub
      super.onActivityResult(requestCode, resultCode, data); 
      basket = data.getExtras();  
      Log.i("Splash","on activity result...");
      if (resultCode == RESULT_OK){  
          switch(requestCode){ 
          case 0:
  
              wifi.disConnect();
              break;
          }
  
      }
  }
  </code></pre>
  
  <h2>Child Activity</h2>
  
  <pre><code>@Override
  public boolean onKeyDown(int keyCode, KeyEvent event) {
      if ((keyCode == KeyEvent.KEYCODE_BACK)) {
          Log.i("HomePage","onKeyDown");
          sendBack("close"); 
      }
      return super.onKeyDown(keyCode, event);
  }
  
  public void sendBack(String command) { 
      Intent sendBack = new Intent(); 
      Bundle basket1 =new Bundle();
      basket1.putString("command", command);  
      sendBack.putExtras(basket1);
      setResult(RESULT_OK, sendBack);
      finish();   
  }
  </code></pre>