title: android - onActivityResult() is not invoked when i used it in the tabs (zxing scanner)
body: <p>I used <strong>zxing scanner</strong> for scanning the barcodes and QR codes because it is open source. It is working fine except in tabs means I used the same code in the tab group but here it's not working. The problem is onActivityResult() is not invoked. How can we solve this issue.</p>
  
  <pre><code>code
  </code></pre>
  
  <p><strong>SubActivity</strong></p>
  
  <pre><code>public class ScannScreenActivity extends Activity 
  {  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) 
      {
          super.onCreate(savedInstanceState);
  
          View viewToLoad = LayoutInflater.from(this.getParent()).inflate(R.layout.scan, null);
          this.setContentView(viewToLoad);
  
           mShowCamBut.setOnClickListener(new OnClickListener() {   
                  public void onClick(View v) 
                  {
                       IntentIntegrator integrator = new IntentIntegrator(ScannScreenActivity.this);
                       integrator.initiateScan();                 
                  }                                             
              });
      }
  
      public void onActivityResult(int requestCode, int resultCode, Intent intent) 
      {
            IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
            if (scanResult != null)
            {
  
                System.out.println("ScannScreenActivity FormatName:"+scanResult.getFormatName());
                System.out.println("ScannScreenActivity Content:"+scanResult.getContents());
            }       
      }
  }
  </code></pre>
  
  <p><strong>ActivityGroup</strong></p>
  
  <pre><code>public class TabGroupActivity extends ActivityGroup 
  {
     //......
    ........Some code
  
    protected void onActivityResult(int requestCode, int resultCode, Intent data) 
    {
  
        if (resultCode == Activity.RESULT_OK) 
        {       
            ScannScreenActivity activity = (ScannScreenActivity) getLocalActivityManager().getCurrentActivity();
            activity.onActivityResult(requestCode, resultCode, data);
        }
    }
  }
  </code></pre>
  
  <p><strong>Log</strong></p>
  
  <pre><code>09-21 11:45:32.448: D/memalloc(10723): /dev/pmem: Unmapping buffer base:0x5239b000 size:8560640 offset:7024640
  09-21 11:45:32.458: D/memalloc(10723): /dev/pmem: Unmapping buffer base:0x51f79000 size:4280320 offset:2744320
  09-21 11:45:33.949: W/IInputConnectionWrapper(10723): showStatusIcon on inactive InputConnection
  09-21 11:45:33.999: W/IInputConnectionWrapper(10723): InputConnection = android.view.inputmethod.BaseInputConnection@40dc2da0, active client = false
  </code></pre>