i would to know what is the code to take a screenshot of the current screen (after a press of a button) and save it on a gallery because I don\'t have a device with sd cards
As 323go commented, this isn't possible unless your device is rooted, really.
323go
But if it is, it might be a good job for monkeyrunner or if you're using an emulator.