-1

I have created a quiz app and once the user has finished the quiz an activity opens which shows a certificate with the user's achievements. I want the device to screen shot the certificate so that the user can view the screenshot in the gallery at a later date. What code should I put into my OnClickListener.

Thanks in advance.

2 Answers2

0

It sounds like you don't need to actually take a screenshot, you likely just want to save your View to a bitmap. Take a look at this answer: Converting a view to Bitmap without displaying it in Android?

Community
  • 1
  • 1
satur9nine
  • 13,927
  • 5
  • 80
  • 123
0

If you want to print the current content of the browser window. Use: window.print();

shailb
  • 164
  • 1
  • 4