I've done some search in the internet. Some suggests use of PixelCopy API or Canvas. However, either way is limited to get the bitmap of the decor view. If there is a toast or AlertDialog on top of current activity, their images would not appear in the final bitmap.
So my question is, can I get bitmap of the whole activity, not only view, so the bitmap contains any Dialog or Toast on top of the activity?