To retrieve the Android camera size I’ve used the following code:
camera=Camera.open();
Parameters params = camera.getParameters();
List sizes = params.getSupportedPictureSizes();
for (int i=0;i<sizes.size();i++){
Log.i("PictureSize", "Supported Size: " +sizes.get(i));
}
But getSupportedPictureSizes() doesn’t work in android 1.6. How to retrieve the maximum supported size of the camera in some other way?
That method is only supported in API version >= 8.
Check out this links:
Android backward code compatibility
http://developer.android.com/resources/articles/backward-compatibility.html