Need a sample Camera program in Android.

hi,
I am working on an android project in which I need to use Camera Api of Android to capture or take a photo. How can this be acheived using Android's Camera API. Can any one post sample Camera Program in android?

thanks in Advance,