I'm trying to take screenshot programmatically of an activity with camera running and an overlay on it.
I have already tried the following :
capturing Bitmap and drawing it on a canvas
The camera part of screen shows up as black
using Open GL
Couldn't get the overlay part of the screen
I also tried to combine both images, that too did't come out well.
NB : I already went through lot of similar questions, but couldn't find a solution for the same.
I'm using Vuforia cloud reco camera in the activity.
Please help me with this, thanks in advance.
mSnapshotLayout is getting main layout id whose snapshot you want, Like this
Use This inside your button click
And Here is the method to store that Image