set Camera Video Stabilization - Android Camera

Android examples for Camera:Camera Attribute

Description

set Camera Video Stabilization

Demo Code

import android.hardware.Camera;

public class Main {
  private static final String TAG = "";

  public static void setVideoStabilization(Camera.Parameters parameters) {
    if (parameters.isVideoStabilizationSupported()) {
      if (parameters.getVideoStabilization()) {
      } else {//  w ww . ja v a2  s . c  om
        parameters.setVideoStabilization(true);
      }
    }
  }
}

Related Tutorials