I am working on an app in which i have to click a pic a pic and save it to a specified folder. I am using **android.provider.MediaStore.ACTION\_IMAGE\_CAPTURE** in intent to invoke the camera .I am done with coding and my activity is working fine.But now i have a question in my mind that whether i should stick with this code or i should use the code given [here](http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html).Need your precious suggestions on this topic.

Thanx in advance.