Java tutorial
//package com.java2s; //License from project: Apache License import android.annotation.SuppressLint; import android.hardware.Camera; import android.hardware.Camera.Size; import android.os.Build; import java.util.List; public class Main { @SuppressLint("NewApi") public static List<Size> getCameraSupportedVideoSizes(Camera camera) { if ((Build.VERSION.SDK_INT >= 11) && (camera != null)) { return camera.getParameters().getSupportedVideoSizes(); } else { return null; } } }