JackKirk Well-Known Member Licensed User Longtime User Aug 2, 2018 #1 In iOS it appears we can detect screen shots via: https://www.b4x.com/android/forum/threads/detect-screenshot.70880/#post-450008 In Android it looks like you can prevent screenshots via: https://www.b4x.com/android/forum/threads/how-to-b-ban-screen-shots-of-app.52075/#post-326475 but how can we detect screenshots in Android? I can't find any useful info on the forums but on googling the outside world I came across this which may be relevant: https://github.com/jd-alexander/Snapper A library wrapping exercise? Any help appreciated...
In iOS it appears we can detect screen shots via: https://www.b4x.com/android/forum/threads/detect-screenshot.70880/#post-450008 In Android it looks like you can prevent screenshots via: https://www.b4x.com/android/forum/threads/how-to-b-ban-screen-shots-of-app.52075/#post-326475 but how can we detect screenshots in Android? I can't find any useful info on the forums but on googling the outside world I came across this which may be relevant: https://github.com/jd-alexander/Snapper A library wrapping exercise? Any help appreciated...
DonManfred Expert Licensed User Longtime User Aug 2, 2018 #2 You probably can use https://www.b4x.com/android/forum/threads/fileobserver.16709/#content and monitor changes in the Screenshot path private static final String PATH = Environment.getExternalStorageDirectory().toString() + "/Pictures/Screenshots/"; Click to expand... You probably can find the path with this lib: https://www.b4x.com/android/forum/threads/storage-v1-0.49253/ DonManfred said: Paths As Map [read only] Get a Map of systempaths. Click to expand... Upvote 0
You probably can use https://www.b4x.com/android/forum/threads/fileobserver.16709/#content and monitor changes in the Screenshot path private static final String PATH = Environment.getExternalStorageDirectory().toString() + "/Pictures/Screenshots/"; Click to expand... You probably can find the path with this lib: https://www.b4x.com/android/forum/threads/storage-v1-0.49253/ DonManfred said: Paths As Map [read only] Get a Map of systempaths. Click to expand...