Call the startPreview method before you call takePicture method camera.takePicture(null, null, mCall);
and the startPreview method I used is
private void startPreview() {
if (cameraConfigured && camera!=null) {
camera.startPreview();
inPreview=true;
}
}
and through this I solved my issue... It may help you guys.