cameraCapturePicture

postado em 6 de jun de 2012 16:31 por Silvio Garbes
cameraCapturePicture(
 
String targetPath,
 
Boolean useAutoFocus[optional, default true])

Take a picture and save it to the specified path.

Returns:
 A map of
Booleans autoFocus and takePicture where True indicates success.

Exemplo

<?
require_once("Android.php");
try {
   $droid = new Android();
   $droid->cameraCapturePicture("/sdcard/DCIM/ScriptPic.jpg");
} catch(Exception $e) {

        $droid->vibrate();
        $droid->notify('Exception',$e->getMessage());
        die("script exited with an exception");
}

?>
Comments