Default Camera Preview/Capture Example Source Code on Nuxus One(Android 2.0 Phone)

I'm programming Camera Application on Nexus One.
However the result is not good.
I made some camera application on Android 1.5 phone.

I'm searching for the reference camera example source code on Nexus One(Android 2.0 Phone).

Where can I find the reference code on Nexus One(Android 2.0 Phone) that has the preview function and the jpeg capture???