rayworks/DroidCast

It's not working when setting the window flag 'FLAG_SECURE' for current Activity

Closed this issue · 1 comments

Set the window flag :
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);

Result :

java.lang.NullPointerException:
Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

As it's one of the system secure settings, there is nothing we can do about it unless we hooked the target app on a rooted device.