2016-11-15 20 views
4

當用戶進入Current Apps Manager時,任何人都知道如何隱藏您的應用的內容? 像這樣的鏈接是爲ios解釋:http://pinkstone.co.uk/how-to-control-the-preview-screenshot-in-the-ios-multitasking-switcher/Android:在多任務視圖中隱藏應用內容

謝謝!

+1

https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes- to-the-background/9822607?s = 3 | 0.4276#9822607 https://stackoverflow.com/questions/10533186/replace-image-from-recent-app-menu/10533297?s=6|0.2426#10533297 https: //stackoverflow.com/questions/9984083/show-black-preview-screen-in-task-manager-on-ics/12640403?s=7|0.2117#12640403 https://stackoverflow.com/questions/27284778/need從android-overview-screen/27306602?s = 9 | 0.1814#27306602 – CommonsWare

+0

謝謝@CommonsWare它與安全標誌一起工作! – Alex

回答

0

在Android清單文件中,活動標籤,使用此

android:excludeFromRecents="true" 
3

不知何故 機器人:excludeFromRecents =「真」 並沒有爲我工作..即使我讀它應該。然而,在你的活動中使用這個技巧將會訣竅: getWindow()。setFlags(LayoutParams.FLAG_SECURE,LayoutParams.FLAG_SECURE);

謝謝您的回答CommonWare & NavjotSingh

+0

感謝那條線做的工作 –