To exclude the application from recent apps you should do the following:
on Activity on Manifest android:excludeFromRecents="true"
and you can disable thumbnail on the activity containing sensitive data by adding FLAG_SECURE
to your window:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);