I'm not sure if you've found a solution for this problem or not yet, but I've come across the same issue. Here is what I was thinking of trying. Note that I haven't tried it yet so I don't know how well it will work.
First, implement the Camera.PreviewCallback so that you can get at the camera preview image. The data is passed as an array of bytes. I would just keep track of the most recent image. You can use the BitmapFactory class to convert this data to a bitmap and store it like that. However, since you only need this data when an image is taken, you are probably best just to leave it as is and do the conversion later when needed. In the layout, put the view that is showing the camera preview in a frame layout and place an ImageView on top of it. In preview mode, make the camera preview visible while hiding the ImageView. Now when you want to take an image, set the ImageView to show the most recent preview that was stored (convert to bitmap at this time), make the ImageView visible and make the camera preview view invisible. Once the image has been captured, swap the view visibilities again. If anyone has a suggestion on a simpler way of doing this, I would appreciate any feedback. Mike On Jun 18, 5:52 am, blues <[email protected]> wrote: > Guys hi , > > I'm running a standard camera preview (i use the camera api demo as a > reference). > > When i hit the capture button, there is a black screen for a good 1/2 > second until the captured image appears. > > My question is how can i freeze the last image being previewed on the > screen while i do the capture work ? > I don't mind that the quality of the displayed image is not as good. > > If i hit camera.stopPreview() -> that goes into the black screen which > i don't want. > > Please advise --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

