How to take a screenshot of other app programmatically without root permission, like Screenshot UX Trial?

后端 未结 3 1848
北海茫月
北海茫月 2020-11-28 01:07

How to take a screenshot of other app programmatically without root permission, like Screenshot UX Trial?

  1. I know I can capture the bitmap of the root view i

3条回答
  •  眼角桃花
    2020-11-28 02:07

    I don't think Android will allow you to access another app's frame buffer. This is just part of the security of Android. Each app should keep to its own resources.

    If you really need to get a screen capture of any app, I would suggest using the native screen grab "gesture". For the the Nexus 7 for example, simply "... hold the power button and the volume down button at the same time for approximately 2 seconds."

    A Google search will usually find the trick with your device.

提交回复
热议问题