Por ejemplo:Cómo inicializar un nuevo Camera.Size en Android
int width = 720;
int height = 1280;
Quiero crear una Camera.Size.
Camera.Size size = new Camera.Size(width,height);
Pero tiene algún error.
No enclosing instance of type Camera is accessible. Must qualify the allocation with an enclosing instance of type Camera (e.g. x.new A() where x is an instance of Camera).
Esto funcionó para mí. ¡Muchas gracias! No sabía que necesitaba usar camera.new. ¡Increíble! – sunlover3