Vereis cuando realizo este intent:
case ImageFormat.RAW_SENSOR: {
DngCreator dngCreator = new DngCreator(mCharacteristics, mCaptureResult);
FileOutputStream output = null;
try {
output = new FileOutputStream(mFile);
dngCreator.writeImage(output, mImage);
Intent i=new Intent(Camera2RawFragment.this,CameraVisorActivity.class);
success = true;
} catch (IOException e) {
e.printStackTrace();
} finally {
mImage.close();
closeOutput(output);
}
break;
}
default: {
Log.e(TAG, "Cannot save image, unexpected image format:" + format);
break;
}
}
Me da el siguiente error:
"com.example.android.camera2raw.Camera2RawFragment" cannot be referenced from a static context
¿Como podría solucionarlo?
Gracias de antemano.