Somehow android: excludeFromRecents = "true" did not work for me .. although I read that it should have.
However, using this in your activity will do the trick: getWindow (). setFlags (LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
Thanks for your answers to CommonWare and NavjotSingh