How to take a screenshot for a video in android

I have a video game, and at some point I need to pause the video, take a capture and use this image to change it, in the activity of the paint. The problem is that if I try to save the video, the image will be black (using setDrawingCacheEnabled(true); ) ........ Can I take a screenshot for the video?

+4
source share
3 answers

Have you tried ThumbnailUtils.createVideoThumbnail(String, int)?

+5
source

Try this link ..

Hope this helps you.

Screen capture

 Bitmap saveBitmap = Bitmap.createBitmap(imageFrame.getWidth(), imageFrame.getHeight(), Bitmap.Config.ARGB_8888); Canvas c = new Canvas(saveBitmap); imageFrame.draw(c); 

For more information, try this link.

& this link

+1
source

I think you should use the screencaputre application in android, which fully uses you ... but not the best way for u to connect your Android to a PC, than start the video and pause it, than on the keyboard, click on the print screen, and in the software to print, press ctrl + V (paste) and save in jpeg format, than you will get a screenshot / image ...

-1
source

All Articles