get Camera Supported Preview Sizes - Android Camera

Android examples for Camera:Camera Preview

Description

get Camera Supported Preview Sizes

Demo Code


//package com.java2s;
import java.util.List;

import android.hardware.Camera.Size;

public class Main {
    public static List<Size> getCameraSupportedPreviewSizes(
            android.hardware.Camera camera) {
        List<Size> sizes = camera.getParameters()
                .getSupportedPreviewSizes();
        return sizes;
    }//from www .  j  a  v  a 2s  . c o  m
}

Related Tutorials