I was trying to create a simple camera application for research. I Read Android Camera Official Document and then started coding. so I did some steps to get it work
I have handled camera by writing some code that was majorly adapted from the ZXing project: http://code.google.com/p/zxing/
You could try using those. If you are trying to use this, I would recommend going through the solution of this stackoverflow question
This may not be the perfect solution to your question, but I had ran through this issue and had decided to use Zxing.