Switch Camera in Android
<p>I am following the sample available at:
<a href="http://developer.android.com/guide/topics/media/camera.html" rel="nofollow">http://developer.android.com/guide/topics/media/camera.html</a></p>

<p>for developing an camera application.</p>

<p>This app shows a camera preview and a button and when user clicks on the button picture is taken and saved and camera preview is shown again.</p>

<p>But I want to switch to the front camera now. Any idea how to do this? It is possible to start with either front or back camera but I could not change it on the fly as if I call a new camera instance the app crashed.</p>

<p>Any idea how this can be done?</p>

<p>Thanks In Advance,
Perumal</p>
