Android examples for Camera:Camera Attribute
get Camera Best Fps Range
//package com.java2s; import java.util.List; import android.hardware.Camera; import android.hardware.Camera.Parameters; public class Main { public static int[] getBestFpsRange(Camera camera) { Parameters params = camera.getParameters(); int min = Integer.MAX_VALUE; int max = 0; List<int[]> ranges = params.getSupportedPreviewFpsRange(); for (int[] range : ranges) { if (min >= range[0] && range[1] >= max) { min = range[0];//from w w w.j a v a 2 s . com max = range[1]; } } return new int[] { min, max }; } }