I\'m using the Android APIDemo sample code.
When I run the CameraPreview example, at first it was giving me an error.
I traced that one down and the sample
I also get this type of issue on a HTC device. To solve add this code:
@Override protected void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); if (camera!=null) { camera.stopPreview(); camera.release(); camera=null; } }
And yet you cannot start camera then restart device.