I'm trying to program my camera application on Nexus One,

But the example code of android sdk 2.0 isn't working.

The example source is the CamraPreview.java.

I don't know what the problem is and this code works on the other android phone.

If anybody has the information about this problem, please let me know that.

Thanks in advance.