take device snapshot programmatically in android

倾然丶 夕夏残阳落幕 提交于 2019-12-09 23:45:31

问题


How can I take snapshot of device like this tablet has button in menu bar to take a snap shot of device screen?

the device has android 4.1.1

this same functionality is wanted to implement in my application to capture the screen snapshot.

note that:

  • I don't want to use Layout.getDrawingCache();
  • I only want to access this method as the OS uses.or a solution like this
  • I do not need to root device.so please do not provide root solutions

回答1:


just have a look on this https://code.google.com/p/android-screenshot-library/
i hope it usefull for you...



来源:https://stackoverflow.com/questions/19493688/take-device-snapshot-programmatically-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!