how to take screenshot programmatically and save it on gallery?

后端 未结 4 2083
遇见更好的自我
遇见更好的自我 2020-12-18 06:49

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

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 07:20

    As 323go commented, this isn't possible unless your device is rooted, really.

    But if it is, it might be a good job for monkeyrunner or if you're using an emulator.

提交回复
热议问题