Code example for SurfaceHolder

Methods: isCreating

0
    		Log.v(TAG, "Could not open camera");
    		return false; 
    	} 
    	 
        try { 
        	Log.v(TAG, "Init. camera h="+h.isCreating());
 
            Camera.Parameters p;
            p = c.getParameters();
            p.set("antibanding", "off");           
            //p.set("effect", "mono"); 
            p.set("jpeg-quality", 100);
            //p.set("luma-adjust", 1); 
            p.set("nightshot-mode", 1);
            p.set("rotation", 0);
            //p.set("whitebalance", "twilight"); 
            p.set("picture-size", "2048x1536");
            p.set("picture-format", "jpeg");
            c.setParameters(p);
			c.setPreviewDisplay(h);
		} catch (IOException e) {