I want to take screenshot of whatever Activity, Fragment of Dialog is currently visible without the Activity, Fragment or Dialog context e.g on device shake, I do have the application context.
All of the following answers need Activity, Fragment or View.