You will see when I do this 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;
}
}
I get the following error:
"com.example.android.camera2raw.Camera2RawFragment" can not be referenced from a static context
How could I solve it?
Thanks in advance.