Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
        }
    }
}