dump Camera Preview Size List - Android Camera

Android examples for Camera:Camera Preview

Description

dump Camera Preview Size List

Demo Code


//package com.java2s;

import android.hardware.Camera;

import java.util.List;

public class Main {
    private static String dumpPreviewSizeList(List<Camera.Size> sizes) {
        String result = "";
        for (Camera.Size size : sizes) {
            result += "(" + size.width + "," + size.height + ") ";
        }//from w  w  w . j  av a  2s  .c o m
        return result;
    }
}

Related Tutorials