Here you can find the source of getBiggestPictureSize( Camera.Parameters parameters)
public static Camera.Size getBiggestPictureSize( Camera.Parameters parameters)
//package com.java2s; //License from project: Open Source License import android.hardware.Camera; public class Main { public static Camera.Size getBiggestPictureSize( Camera.Parameters parameters) { Camera.Size result = null;/*w w w .j a va 2s . c o m*/ for (Camera.Size size : parameters.getSupportedPictureSizes()) { if (result == null) { result = size; } else { int resultArea = result.width * result.height; int newArea = size.width * size.height; if (newArea > resultArea) { result = size; } } } return (result); } }