Android camera out of memory exception
<p>I have a strange problem on my htc hero. When launching camera, i get out of memory exception. After that, if i launch any other application that uses camera, they also crash(when trying to use camera function).
I call camera.release and camera.stoppreview in surfacedestroyed function, but that doesnt help. </p>

<p>What is the right way to release all resources? Could somebody please show his working surfacechanged, surfacecreated and surfacedestroyed functions?
I have empty onPreviewFrame function, should i put something there?</p>
