I am trying to take a screen shot of whatever is drawn on my custom
view's canvas. I use the following lines for the same:
Note: My custom view just draws two Bitmaps one above the another(sort of an Overlay).
The getDrawingCache() call returns null sometimes. Also, when teh call does return a valid bitmap, the bitmap object returns true on isRecycled() test.
Any pointers to what I am doing wrong here?