title: How to do a screen capture without getting an OOM (out of memory) exception?
body: <p>I want to screencapture and save a view.</p>
  
  <p>I think I can create a bitmap as big as the view and draw the view on this bitmap. In this situation, the view's width is the same as the screen's width, and its height may be more than the screen.</p>
  
  <p>So it is easy to get an OOM problem. Is there any way to avoid this problem?</p>