Android Camera Get getDefaultCameraInstance()

Here you can find the source of getDefaultCameraInstance()

Description

get Default Camera Instance

Return

the default camera on the device. Return null if there is no camera on the device.

Declaration

public static Camera getDefaultCameraInstance() 

Method Source Code

//package com.java2s;

import android.hardware.Camera;

public class Main {
    /**/*from   w  w  w . j a va2 s .c o m*/
     * @return the default camera on the device. Return null if there is no camera on the device.
     */
    public static Camera getDefaultCameraInstance() {
        return Camera.open();
    }
}

Related

  1. getCameraInstance()
  2. getCameraInstance()
  3. getCameraInstance()
  4. getDefaultCamera(int position)
  5. getDefaultCamera(int position)
  6. getDefaultFrontFacingCameraInstance()
  7. getNumberOfCameras()
  8. getDefaultBackFacingCameraInstance()
  9. getCameraRotation(final Context context)