문제

I have an app in android that I want to protect it's content when the app goes to background or mainly when the user pressed on the home button. If I go to switching between apps I can see a small thumbnail there of my current app screen, which I want to protect it with some blur or another screen.

I tried blurring, dimming, changing colour in the onPause event, but it always takes the screenshot thumbnail for the switch apps as it is.

Do you have any idea or approach on this matter?

도움이 되었습니까?

해결책

Have you tried disabling the thumbnail by adding FLAG_SECURE to your window on exiting?

getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top