Android Question Take a screenshot disabled

D

Deleted member 103

Guest
Hi,

I know, to take a screenshot you simply press and hold the power and volume-down buttons together.

This works normally from any app, just from an app it does not work, why?
How can an app(Sparkasse+) disable this feature?
 

DonManfred

Expert
Licensed User
Longtime User
http://stackoverflow.com/questions/28606689/how-to-prevent-screen-capture-in-android

and here

http://stackoverflow.com/questions/...-capturing-recording-screen/30618030#30618030

The solution may be something like

B4X:
#if java
import android.view.WindowManager;

public void disablescreenshot(){
   getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
}

public void enablescreenshot() {
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
}
#end if
 
Last edited:
Upvote 0
D

Deleted member 103

Guest
Vielen Dank Manfred!
Warum macht sowas diese App?
Ich wollte gestern abend ein paar Screenshot für Beweise machen und konnte nicht.

Thank you Manfred!
Why does something like this app?
I wanted last night to make a few Screenshot for evidence and could not.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
Also Telegram disables screenshots.
I have done a wrapper (soon to be released) which captures screenshots and I noted this too with Telegram.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…