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
Android Camera documentation
Anything I had missed out?
Try this:
Camera cam = Camera.open();
Size size = cam.new Size(100, 100);
Not entirely sure why this is needed, but it seems to work for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With