Here you can find the source of getLowestResolution(Camera.Parameters cp)
public static Camera.Size getLowestResolution(Camera.Parameters cp)
//package com.java2s; import android.hardware.Camera; import java.util.List; public class Main { public static Camera.Size getLowestResolution(Camera.Parameters cp) { List<Camera.Size> sl = cp.getSupportedVideoSizes(); if (sl == null) sl = cp.getSupportedPictureSizes(); Camera.Size small = sl.get(0);/*from w w w. j ava 2s . c o m*/ for (Camera.Size s : sl) { if ((s.height * s.width) < (small.height * small.width)) small = s; } return small; } }