I think you need something like this first:
mCamera = Camera.open();
That's how my app that uses the camera works. Everything is done through mCamera then. I don't change the size either. If I want a smaller size, to send it somewhere for instance, I make it smaller with Bitmap.compress() at the time.
I tried what you did and it did the exact same thing to me. Wanted size to be of type Camera but if it was made to be that type, it wanted it to be Size. Didn't make sense.
Boy do I feel stupid. I finally figured out that is an inner class. Here's what Java says about that:
To instantiate an inner class, you must first instantiate the outer class. Then, create the inner object within the outer object with this syntax:
OuterClass.InnerClass innerObject = outerObject.new InnerClass();
Here's where you can get the whole story if you're interested:http://docs.oracle.com/javase/tutorial/ ... ested.html
Hope this helps.