Reputation: 9
I'm trying to take a screenshot while using the camera, but it's not happening.
I Searched a lot to find out a solution, but none of the answers gave me exact solution.
My Question is: how can a real Android device (any brand and any model) take a screenshot while using the camera if we're unable to capture a surfaceview?
Upvotes: 0
Views: 61
Reputation: 3295
Sorry you can't. The SurfaceView associated to the camera is hardware accelerated so it won't show in your screenshot.
The only solution I came across is to get the preview from the camera and paint it in the SurfaceView programmatically as per this link. Then the screenshot will work.
Upvotes: 2