I had to take a screenshot that can be later saved in SD card. I have gone through the code given at below this link.
Android take screenshot via code
problem is that it creates a zero(0) kb file in my Sd card. what could be the problem? and what is id.layoutroot
?