No enclosing instance of type Camera is accessible
<p>I have the following code</p>

<pre><code>android.hardware.Camera.Size size = new android.hardware.Camera.Size(300, 300);
</code></pre>

<p>I get the following compilation error</p>

<pre><code>No enclosing instance of type Camera is accessible
</code></pre>

<p>However, I check the documentation, it is a public constructor</p>

<p><a href="http://developer.android.com/reference/android/hardware/Camera.Size.html#Camera.Size%28int,%20int%29" rel="nofollow">Android Camera documentation</a></p>

<p>Anything I had missed out?</p>
