not finishing activity when passing picture of byte array taken by camera
<p>i am using a main activity which is calling a cameraActivity and using picture taken by camera. i am finish camera activity on pictureTaken and passing byte array to parent activity</p>

<pre><code>  protected PictureCallback jpegCallback=new PictureCallback() {
    public void onPictureTaken(byte[] data, Camera camera) {

               //Finishing Camera activity              
           Bundle bundle=new Bundle();
       bundle.putByteArray("imageToPreview", data);
       mPreview.imageBundle=bundle;
               Intent it=new Intent;
               it.putExtras(bundle);
               CameraActivity.this.setResult(Activity.RESULT_OK,it);
       CameraActivity.this.finish();

        } 

      }
    };
</code></pre>

<p>so passing image byte array creating problem and result in not finish of activity.</p>

<p>if i pass simply</p>

<pre><code>CameraActivity.this.setResult(Activity.RESULT_OK);
CameraActivity.this.finish();
</code></pre>

<p>it working properly 
plz help i have to use this image in parent activity</p>
