Android examples for Camera:Camera Attribute
get Camera Lowest Resolution
//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);/* w w w.j ava 2 s . c o m*/ for (Camera.Size s : sl) { if ((s.height * s.width) < (small.height * small.width)) small = s; } return small; } }