Validate if a size is less than 1080p. - Android android.util

Android examples for android.util:Size

Description

Validate if a size is less than 1080p.

Demo Code


//package com.java2s;

import android.util.Size;

public class Main {
    /**/*from  w  ww  .  j a va  2  s . c  o m*/
     * Validate if a size is less than 1080p. Some devices
     * can't handle recording above that resolution.
     */
    public static boolean verifyVideoSize(Size option) {
        return (option.getWidth() <= 1080);
    }
}

Related Tutorials