title: getOutputMediaFile(int) is undefined for the type new Camera.PictureCallback(){} error confusing me
body: <p>I cannot figure out why this is occurring. It is probably a silly mistake that I cannot identify. Again the error is: </p>
  
  <p><code>getOutputMediaFile(int) is undefined for the type new Camera.PictureCallback(){}</code></p>
  
  <p>my code:</p>
  
  <pre><code>public static final int MEDIA_TYPE_IMAGE = 1;
      private PictureCallback mPicture = new PictureCallback() {
  
          public void onPictureTaken(byte[] data, Camera camera) {
  
              File pictureFile = getOutputMediaFile(MEDIA_TYPE_IMAGE);
              try {
                  FileOutputStream fos = new FileOutputStream(pictureFile);
                  fos.write(data);
                  fos.close();
              } catch (FileNotFoundException e) {
                  //Log.d(TAG, "File not found: " + e.getMessage());
              } catch (IOException e) {
                 // Log.d(TAG, "Error accessing file: " + e.getMessage());
              }
          }
      };
  </code></pre>