how to disable screenshot on android p

45
March 20, 2019, at 01:10 AM

Currently i am using FLAG_SECURE method to disable the screenshot functionality but users having Android P are able to take screenshots. How to restrict that?

This is not working for Android P: getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE);

Thanks in Advance.

READ ALSO
FragmentScenario configuration - Binary XML file line, Error inflating class <widget> while testing with espresso

FragmentScenario configuration - Binary XML file line, Error inflating class <widget> while testing with espresso

Inflating error while trying to use FragmentScenario with launchFragment and launchFragmentInContainer if using material component in XML

50
Mock a bluetooth device

Mock a bluetooth device

I have to mock a bluetooth device that would first pair with an Android device and then send predefined data to an Android appI have no access to source code of the app, but I managed to get bluetooth communication packets sent between devices (using...

40
How to determine if a thread from the previous session is currently running

How to determine if a thread from the previous session is currently running

My app launches an AsyncTask thread that retrieves some information from a websiteWhen the user exits the app while the thread is still running, the thread continues to run

24
Add, Use and Remove Payment Methods through Lyft API

Add, Use and Remove Payment Methods through Lyft API

We would like the ability to insert new payment methods, update existing methods, use specific payment methods and delete payment methods (or make inactive) payment methods via the Lyft API

49