I have the following code
android.hardware.Camera.Size size = new android.hardware.Camera.Size(300, 300);
I get the following compilation error
No enclosing instance of type Camera is accessible
However, I check the documentation, it is a public constructor
Anything I had missed out?
Try this:
Not entirely sure why this is needed, but it seems to work for me.