How to add functionality to the official Take Photo Button of Android Phones?
<p>I need to add functionality to that button, but i dont know the name of the button, and I dont know how to give it functionality.</p>

<p>Does someone know what to do?</p>

<p>SOLVED: </p>

<pre><code>    mSurfaceView.requestFocus();
    mSurfaceView.setFocusableInTouchMode(true);

public boolean onKey(View v, int keyCode, KeyEvent event) {
    boolean keyManaged=false;
    switch(keyCode)
    {
        case KeyEvent.KEYCODE_CAMERA:
            mCamera.takePicture(null, mPictureCallback, mPictureCallback);  
            keyManaged=true;
            break;
    }
    return keyManaged;
}
</code></pre>
