I am working on an aplication that has a button to share certain information. When you press that button, a system dialog is being displayed with ways of “sharing” a certain information (you know, the thing with “Complete action using…” and “ALWAYS”, “JUST ONCE” buttons).
The problem is, if you close the screen with this system dialog displayed and re-open the screen, this system dialog is going to be on top of the app PIN/fingerprint unlock screen (it’s a financial app, so it has sensitive data).
I need to find a way to either make this go beneath the app lock screen or dismiss it. I tried to use:
//close any system dialogs when this is displayed sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
in the MainActivity’s onStart() method, but it’s not working.
Do you know of any way to make this work? Thanks!