Here you can find the source of getDefaultCameraInstance()
public static Camera getDefaultCameraInstance()
//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(); } }