1

I want to add a feature to an app that takes a screenshot and then allows you to send it (by email etc). I read this this thread: Android save view to jpg or png and the answer works perfectly.

However, when I set the top level linear layout as the view, the image contains everything correctly apart from my custom view, which it just draws as a black square. My custom view is an extension of surface view, the onDraw method is being called from a thread.

Does anyone know if there is a way to make this work?

Community
  • 1
  • 1
TheLastBert
  • 466
  • 4
  • 16

0 Answers0