Java tutorial
//package com.java2s; import android.media.CamcorderProfile; import android.util.Log; import java.util.ArrayList; import java.util.List; public class Main { private static int[] specificProfileQualities = { CamcorderProfile.QUALITY_QCIF, CamcorderProfile.QUALITY_QVGA, CamcorderProfile.QUALITY_CIF, CamcorderProfile.QUALITY_480P, CamcorderProfile.QUALITY_720P, CamcorderProfile.QUALITY_1080P }; public static List<CamcorderProfile> getAvailableProfiles(int cameraID) { List<CamcorderProfile> profiles = new ArrayList<>(specificProfileQualities.length); for (int quality : specificProfileQualities) { if (CamcorderProfile.hasProfile(cameraID, quality)) { CamcorderProfile p = CamcorderProfile.get(cameraID, quality); profiles.add(p); Log.d("PROFILE", p.videoFrameWidth + "x" + p.videoFrameHeight + " " + p.videoFrameRate + " fps " + p.videoBitRate + " bps "); } } return profiles; } }