I have a problem when I code project by Android Studio which is like that: When we use us apps, if we click into Recent apps button, our apps will be minimize and we can see almost information of Apps. And now, I would like when click into Recent Apps button, we can not see any information and it will become into a picture, or background color. and maximize it become normal. Can anyone give me a suggestion some keyword or guide. Thanks all.
Asked
Active
Viewed 409 times
1 Answers
0
Try adding in your onCreate
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);

Prexx
- 2,959
- 5
- 31
- 48
-
Thank you, It's so good, but, now I would like to create new View to change, there is a white background like that instead. – Le Thanh Tan Jan 19 '17 at 10:14
-
It's not possible. Have a look at: http://stackoverflow.com/questions/33249526/android-changing-color-of-window-background-when-using-flag-secure – Prexx Jan 19 '17 at 10:15
-
Thank you, can we change into any images ? – Le Thanh Tan Jan 19 '17 at 10:52