Capture screen of SurfaceView
In above image i have one SurfaceView and one Button named Capture . SurfaceView is showing camera preview. So, I want screenshot of surfaceview when i click on Capture button. I had tried many examples and answers but none of them works. I just get Black Screenshot image . In some posts i also found it is impossible to take screenshot of surfaceview . So please help me any alternative solution with example. Here are some answers I already seen: how to create and save a screenshot from a surfaceview? Taking screenshot programmatically doesnt capture the contents of surfaceVIew How to capture