title: Switch Activity in a Camera.PictureCallback
body: <p>I have a Camera.PictureCallback function that gets called when the camera takes a photo in android, but I am wondering how I can access the Activity that the camera is part of. Here is my code:</p>
  
  <pre><code>public Camera camera = null;    
  
  Camera.PictureCallback pictureCallbackJpeg = new Camera.PictureCallback()
  { 
      //PictureCallback(Activity a)
      //{
      //    
      //}
      // An attempt at creating a constructor...
  
      public void onPictureTaken(byte[] data, Camera c)
      {
          camera.startPreview();
  
          // would like to call activity method
      }
  }
  
  // Camera Initilisation
  
  camera.takePicture(null, null, pictureCallbackJpeg);
  </code></pre>
  
  <p>I would like to switch activities and also call a method my main activity here, but I cannot work out how I would do this. Any ideas?</p>