0

I am building an app with react native and I have set privacy currtain on iOS when app is in the background, so you wouldn't see screen contents when user double taps home button. I am not sure how I can do the same with android - how can I add overlay that hides screen content when user clicks multitask button.

Any suggestions?

Mindaugas
  • 1,173
  • 5
  • 15
  • 31
  • 1
    I can't speak with regards to React Native, but the standard Android solution is not to "add overlay", but to add `FLAG_SECURE` to the window showing your activity. – CommonsWare Sep 14 '16 at 12:35
  • Thanks a lot!!! What about using static image? Is there a flag for that? Can you refer to an example? – Mindaugas Sep 14 '16 at 13:07

0 Answers0