Code example for FaceDetector

Methods: findFaces

        //When we are running the camera app, we want uri to be of the file 
        Uri uri = Uri.fromFile(getTempFile(this));
        //Pass the intent some parameters... 
        //intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); 
        //intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); 
        //And we're running the camera app! 
        this.startActivityForResult(intent, PICTURE_RESULT);
    //This code runs after the camera app has been completed! Face detection and image manip 
    //Will be done here. 
    public void onActivityResult(int requestCode, int resultCode, Intent data)
        if(requestCode == PICTURE_RESULT)
            if(resultCode == Activity.RESULT_OK)