Code example for Camera.Parameters

Methods: set, setPictureFormat

0
	public void takePicture(String path, boolean portrait, boolean flash_disable ) 
	{ 
		if ( mCamera == null ) return;
		out_file_name = path;
		Parameters parameters =  mCamera.getParameters();
		parameters.setPictureFormat(PixelFormat.JPEG);
		if ( portrait )
		{ 
			parameters.set("rotation", 90);
		} 
		if ( flash_disable )
			parameters.set("flash-mode", "off");
		mCamera.setParameters(parameters);
		mCamera.takePicture(null,null,this);
	} 
 
	public void onPictureTaken(byte[] data, Camera camera) 
	{ 
		if ( data == null) return;
		if ( out_file_name == null ) return;
Contextual code suggestions in your IDE  Get Codota for Java